8 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filter attached files...
FromSent OnAttachments
joelDec 17, 2001 4:20 am 
Charlie WattsDec 17, 2001 4:58 am 
joelDec 17, 2001 11:14 am 
Charlie WattsDec 17, 2001 11:19 am 
Dan MelomedmanDec 17, 2001 11:29 am 
joelDec 17, 2001 11:39 am 
Sam VarshavchikDec 17, 2001 2:26 pm 
Dan MelomedmanDec 17, 2001 2:34 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] filter attached files i.e.: .exe, .bat ...Actions...
From:joel (jo@telecorp.com.br)
Date:Dec 17, 2001 11:39:42 am
List:net.sourceforge.lists.courier-maildrop

Ok... Thanks... Now it's working

On Mon, 17 Dec 2001, Charlie Watts wrote:

On Mon, 17 Dec 2001, joel wrote:

How may I filter attached files based on their extensions? (i.e.; .exe, .bat, .com, .dll, ...)

Does anybody have an exemple of this?

Something like this?

if ( /^[:space:]+filename=.*\.(vbs|exe|com|bat)\"$/:b ) { /^Subject: !.*/ MATCH2=escape($MATCH2) xfilter "$REFORMAIL -I'Subject: [ALERT: ATTACHMENT] $MATCH2'" }

I'm not using it, just had it archived. You'll want to test, obviously.