Replying to myself...

> So I'm thinking you could run the PDF through that, add a text/plain
> part to INPUTMSG with MIME::tools and pass that to SpamAssassin.  You
> wouldn't actually modify the original message; just temporarily add
> the text/plain part.  Something like this:

There are a couple of downsides I can think of:

1) Regenerating a new MIME message and passing that to SpamAssassin may
make slight changes to the headers that could hide spam cues.  So you don't
want to modify messages that do not have PDF attachments.

2) Some PDF files are huge, especially ones produced by scanners, so you have
to be careful not to DoS your server.

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 MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to