[Mimedefang] How do I recode a part?

David F. Skoll dfs at roaringpenguin.com
Mon Oct 24 10:01:29 EDT 2005

Mark wrote:

> I always thought that writing the altered message part back to the file
> path, given by $message_body -> path, would suffice for MIME::Parser to
> recode the part to what it originally was encoded with.

That is correct, with one caveat: You must call action_rebuild() to
inform MIMEDefang that the message has changed, so that it knows it
has to re-encode all the parts.  Normally, if you don't change
anything in the message, MIMEDefang won't rebuild it -- this saves
pointless smfi_replacebody calls.



More information about the MIMEDefang mailing list