procmail
[Top] [All Lists]

Re: SirCam filter

2001-07-24 12:38:17
Thanks very much for your response.  Eek my misunderstanding though.  I
thought that this line:

* ^Content-Disposition: attachment;
* filename=".*\.(exe|com)"

would get rid of mail coming in with extensions -other- than exe or com.
 I'm wrong?

Regarding the `c' flag  --eep on that too.  Do I need a different flag
to replace the `c' so that filtered mail goes to /var/tmp/SirCam-quarantine?

In human language, I'd like to do this:  If mail arrives that has any
attachment with any extension except .exe and .com AND it has any of the
following stings in it: ` Hi! How are you?' or `I send you this file in
order to have your advice' or `See you later. Thanks' --it will not be
delivered but will be copied into a file called SirCam-quarantine in the
/var/tmp directory.

Thanks.

../i

Bruno Lobato wrote:

In the first part, SirCam adds extensions other than exe, com (e.g dat, bat,
pif, lnk). So you'd better include those extensions as well.

In the second part, do not use the "c" flag otherwise you are still allowing
the message to be delivered.

You don't have to put them together if you do not want to. Just add two
calls at your .procmailrc file.

Hope an expert may confirm my help cause I'm still walking on procmail. At
least, that's how I set it up. It's working fine, so far.

Bye. :-)

Bruno

----- Original Message -----
From: "i l i a n a f i l b y" <if(_at_)tpk(_dot_)net>
To: <procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE>
Sent: Tuesday, July 24, 2001 3:41 PM
Subject: SirCam filter

Hi

Could someone please look over this filter recipe which I cobbled
together?  I'm not good at this but I need to put something in place,
and I'd like to confirm that this recipe won't break anything.  Much.

Thanks.

############################################################
# SirCam protection
:0 HB
* ^Content-Disposition: attachment;
* filename=".*\.(exe|com)"
{
   LOG='REGJECT - SirCam'

   :0
   /var/tmp/SirCam-quarantine
}
############################################################

P.S.  Would it be less prone for trouble if I somehow added something
like this in addition to the recipe above:

############################################################
:0 c
* B ?? Hi\! How are you\?
* B ?? I send you this file in order to have your advice
* B ?? See you later. Thanks
############################################################

If so, I'm not sure how to add the second part to the first properly.

../Iliana

--
f i l b y  *  n 3 y . 8 d u . t w 4 i
  l
  i           t e c h   s u p p o r t
  a
  n
  a
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

-- 
f i l b y  *  6 0 3 . 4 4 8 . 0 0 0 9
  l                                 
  i           t e c h   s u p p o r t
  a
  n
  a
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>