2012-10-01 (Mon) 08:52 UTC +0300 Juha Heinanen jh@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.