You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ITReading ITReading <IT...@aldridge-borden.com> on 2005/05/20 19:07:27 UTC

Rule to adjust score based on presence of attachment type

Hello all,
A college of mine hopes to develop a SpamAssassin rule to apply a
negative score to an email that contains a certain attachment type.  The
attachment is a comma delimited txt file that always has an extension of
.TML .

Is it possible to write a rule that checks for the presence of an
attachment with this particular extension?
He is using SpamAssassin 3.0.2

Thanks so much in advance,



-----------------------------------------------------------
Charles Solomon
System Support Specialist
Aldridge, Borden & Company, P.C.
74 Commerce Street, 36104
PO Box 33, 36101-0033
Montgomery, Alabama
Tel: (334) 420-2854
Fax:(334) 420-2855
www.aldridge-borden.com
email: csolomon@aldridge-borden.com

Re: Rule to adjust score based on presence of attachment type

Posted by Matt Kettler <mk...@evi-inc.com>.
ITReading ITReading wrote:
> Hello all,
> A college of mine hopes to develop a SpamAssassin rule to apply a
> negative score to an email that contains a certain attachment type.  The
> attachment is a comma delimited txt file that always has an extension of
> .TML .
> 

See today's thread "Re: Custom Rule", which does this exact thing.

Summarizing from that thread, something like this should work:

full L_TML_FILE		/Content-Disposition: attachment;.{0,30}
filename=.{0,50}\.tml/i

Re: Rule to adjust score based on presence of attachment type

Posted by Andy Jezierski <aj...@stepan.com>.
"ITReading ITReading" <IT...@aldridge-borden.com> wrote on 05/20/2005 
12:07:27 PM:

> Hello all,
> A college of mine hopes to develop a SpamAssassin rule to apply a
> negative score to an email that contains a certain attachment type.  The
> attachment is a comma delimited txt file that always has an extension of
> .TML .
> 
> Is it possible to write a rule that checks for the presence of an
> attachment with this particular extension?
> He is using SpamAssassin 3.0.2
> 

Yes, see the custom rule thread that's currently going on.

Andy