[sr-dev] patch: sdpops - new function remove_line_by_prefix()

Mikko Lehto mslehto at iki.fi
Mon Oct 1 11:49:53 CEST 2012


2012-10-01 (Mon) 08:52 UTC +0300  Juha Heinanen <jh at tutpro.com>:

> i think you could achieve the same by using replace_body_all(re, txt)
> from textops module.

Yes, this works if body contains only SDP:
replace_body_all("^a=X-.*\n","");


But I was thinking that it is not a good idea as it modifies blindly
whole body part, ignoring boundaries of individual MIME parts.

-- 
Mikko



More information about the sr-dev mailing list