[Mimedefang] Bug in action_defang?

Sidney Markowitz sidney at sidney.com
Sat Oct 26 17:29:00 EDT 2002


David F. Skoll <dfs at roaringpenguin.com> wrote:
> It's a bit difficult to do it all in filter_end()
> with MIMEDefang functions.

After writing out in my last message what I am trying to do, I can see the logical
inconsistency that makes it a difficult problem: How can I expect to make the entire
message defanged by just changing something in the header and still expect that the
message will have multiple MIME parts? That makes no sense at all. I'll have to think
through just what I want do... It may be that I want to replace the entire message
body with the following three parts: 1) the entire raw message body content as an
inline text attachment (which achieves the goal of defanging); 2) The entire original
message with all headers as a text file attachment (not inline) which makes it easy
to retrieve the original if this is a false positive; and 3) the SpamAssassin report
as inline text.

For now I inserted a call to action_delete_all_headers("Content_Type") before the
call to action_defang. Even though it is in filter_end and you say that is not
supposed to work, it still seems to produce a usable result.

 -- sidney




More information about the MIMEDefang mailing list