Discussion:
[Mimedefang] action_external_filter
richards
2017-05-20 11:23:26 UTC
Permalink
Hi List,

There appears to be an issue with action_external_filter when there is
more than one attachment to an email.

The effect is that the body of the first attachment is replaced with
the last attachment processed. I believe this is due to using
copy_or_link to copy the body to FILTERINPUT. The first attachment
creates a hard link to FILTERINPUT, subsequent attachments do a copy
as the link exists. The result being that when mimedefang finally
rebuilds the message the last FILTERINPUT content is used for the body
of the first attachment.

Best regards,


Richard
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman
Dianne Skoll
2017-05-20 13:29:57 UTC
Permalink
On Sat, 20 May 2017 12:23:26 +0100
Post by richards
The effect is that the body of the first attachment is replaced with
the last attachment processed. I believe this is due to using
copy_or_link to copy the body to FILTERINPUT. The first attachment
creates a hard link to FILTERINPUT, subsequent attachments do a copy
as the link exists. The result being that when mimedefang finally
rebuilds the message the last FILTERINPUT content is used for the body
of the first attachment.
Oh, that's a WTF. :(

We should copy the path to FILTERINPUT, not use copy_or_link.

It's a long weekend here; I'll look at this on Tuesday.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/

Loading...