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:Charlie Watts (cewa@frontier.net)
Date:Dec 17, 2001 11:19:40 am
List:net.sourceforge.lists.courier-maildrop

On Mon, 17 Dec 2001, joel wrote:

At moment my filter is the following:

if (/^Content-Type:.TEXT*/) { to ./Maildir/test } else to ./Maildir/

It works fine if the e-mail is text/plain written and just have this single file attached. If the e-mail was written using HTML (argh), maildrop gets confuse and can't find the file attached.

I noticed that the problem could be something related to the quantity of files attached. My filter is looking for the mime-type only in the first occurrency of attached files in the e-mail. If the first occurrency of "Content-Type" string is not what I'm looking for, it aborts the execution and give up.

Is it just that you are only looking at the headers and want to be scanning the body of the message as well?

Look at the /:b trailing option to the search ...

if (/^Content-Type:.TEXT*/:b)