9 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Filtering out message...
FromSent OnAttachments
Michael LeoneJul 18, 2002 12:41 pm 
Mark WeinemJul 19, 2002 2:29 am 
Michael LeoneJul 19, 2002 5:43 am 
Mark WeinemJul 22, 2002 12:28 pm 
Lennart RegebroJul 22, 2002 1:46 pm 
Mark WeinemJul 26, 2002 3:50 am 
Lennart RegebroJul 26, 2002 6:35 am 
William PietriJul 26, 2002 9:11 am 
Lennart RegebroJul 26, 2002 9:26 am 
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] Filtering out messages with attachementsActions...
From:William Pietri (will@scissor.com)
Date:Jul 26, 2002 9:11:40 am
List:net.sourceforge.lists.courier-maildrop

On Fri, 2002-07-26 at 06:36, Lennart Regebro wrote:

Is there a way I can make a filter that matches messages with

attachements?

I haven't been able to find an example of this, and would need it.

Yes (and it was in the archives):

if(/.*name=.*\.(exe|vbs|bat|com|scr|pif)\"/:b )

Well, that filters out things that have executables, which isn't what I need. But I used "/Content-Type: multipart\/mixed;/" as a pattern instead, and that seems to work.

I haven't tested it extensively yet, but I just put a neat generalized sanitizer called Anomy in my /etc/maildroprc and it seems to be working. You can say that some attachments should be accepted, some should be defanged by modifying their names, and others should be removed altogether, either to quarantine or to /dev/null. It also has various other magic for making email safer without making it much less useful.

You can find it here:

http://mailtools.anomy.net/

William