Re: Attachement name test

2005-09-13 Thread Matt Kettler
At 10:56 AM 9/13/2005, Theo Van Dinter wrote: On Thu, Sep 08, 2005 at 11:00:28AM -0400, Matt Kettler wrote: > AFAIK this isn't all that easy in SA versions under 3.1. It's actually the same difficulty with 3.0 as with 3.1. Just use a plugin. (Ok, 3.1 is easier since the plugin already exists ..

Re: Attachement name test

2005-09-13 Thread Theo Van Dinter
On Thu, Sep 08, 2005 at 11:00:28AM -0400, Matt Kettler wrote: > AFAIK this isn't all that easy in SA versions under 3.1. It's actually the same difficulty with 3.0 as with 3.1. Just use a plugin. (Ok, 3.1 is easier since the plugin already exists ... But it wouldn't be hard to write a custom one

Re: Attachement name test

2005-09-09 Thread Arthur Kerpician
Loren Wilton wrote: This is completely untested, but something along these lines might work for you. header __BOGUS_SENDERFrom =~ /[EMAIL PROTECTED]/i full__ATTACH_HDR/\nContent-Type\:.{0,100}\sname=\".{1,50}\.pps\"/is metaBLOCK_STUPID_PPS__BOGUS_SENDER && __ATTACH_HDR score

Re: Attachement name test

2005-09-08 Thread Loren Wilton
This is completely untested, but something along these lines might work for you. header __BOGUS_SENDERFrom =~ /[EMAIL PROTECTED]/i full__ATTACH_HDR/\nContent-Type\:.{0,100}\sname=\".{1,50}\.pps\"/is metaBLOCK_STUPID_PPS__BOGUS_SENDER && __ATTACH_HDR scoreBLOCK_STUPID_PPS

Re: Attachement name test

2005-09-08 Thread Arthur Kerpician
Matt Kettler wrote: Arthur Kerpician wrote: Realistically it will be significantly easier to do this in qmail-scanner. Blocking a specific filename is just as easy as blocking an extension. Just edit your quarantine-attachments.txt. There's examples in there of blocking by complete filename

Re: Attachement name test

2005-09-08 Thread Matt Kettler
Arthur Kerpician wrote: >> >> Realistically it will be significantly easier to do this in >> qmail-scanner. Blocking a specific filename is just as easy as >> blocking an extension. Just edit your quarantine-attachments.txt. >> There's examples in there of blocking by complete filename. > > > Th

Re: Attachement name test

2005-09-08 Thread Arthur Kerpician
Matt Kettler wrote: At 06:27 AM 9/8/2005, Arthur Kerpician wrote: Hi, I'm pretty new in writing custom SA rules and I was wondering how can I check if a message has an attachement with a specific extension (eg .pps). What I'm trying to do is to tag as spam messages that have .pps attachemen

Re: Attachement name test

2005-09-08 Thread Matt Kettler
At 06:27 AM 9/8/2005, Arthur Kerpician wrote: Hi, I'm pretty new in writing custom SA rules and I was wondering how can I check if a message has an attachement with a specific extension (eg .pps). What I'm trying to do is to tag as spam messages that have .pps attachements and are coming from

Attachement name test

2005-09-08 Thread Arthur Kerpician
Hi, I'm pretty new in writing custom SA rules and I was wondering how can I check if a message has an attachement with a specific extension (eg .pps). What I'm trying to do is to tag as spam messages that have .pps attachements and are coming from one e-mail address. I don't want to block all