Possible to archive based on attachments?

Randal, Phil prandal at herefordshire.gov.uk
Tue Jan 5 17:37:53 GMT 2010


You could use a rule like (off the top of my head, so don't shoot me if
it isn't correct):

ifplugin Mail::SpamAssassin::Plugin::MIMEHeader
mimeheader LOCAL_ATTACHED_PDF  Content-Disposition =~
/filename=\".{1,32}\.pdf\"/i
score LOCAL_ATTACHED_PDF 0.01
endif

Cheers,

Phil
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Alex
Neuman
Sent: 05 January 2010 17:23
To: MailScanner discussion
Subject: Re: Possible to archive based on attachments?

Good call Phil. What do you think would be a good way to catch all the
different ways PDF files can be attached?
On Jan 5, 2010, at 12:07 PM, Randal, Phil wrote:

> Write a spamassassin rule to detect PDF attachments, and then use 
> MailScanner's "Spamassassin Rule Action" functionality to archive all 
> hits.

--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council.
You should be aware that Herefordshire Council monitors its email service.
This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.


More information about the MailScanner mailing list