7 messages in net.sourceforge.lists.courier-maildrop[maildropl] procmail->maildrop conver...
FromSent OnAttachments
Ajai KhattriJan 27, 2004 4:05 pm 
Thorsten HaudeJan 27, 2004 11:15 pm 
Ajai KhattriJan 28, 2004 10:01 am 
Ajai KhattriJan 28, 2004 2:55 pm 
Devin RubiaJan 28, 2004 3:50 pm 
Ajai KhattriJan 28, 2004 4:28 pm 
Ajai KhattriJan 30, 2004 9:03 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:[maildropl] procmail->maildrop conversionsActions...
From:Ajai Khattri (aj@bway.net)
Date:Jan 30, 2004 9:03:45 pm
List:net.sourceforge.lists.courier-maildrop

Another conversion attempt from procmail to maildrop...

How to convert this to maildrop:

# :0 HB * ^Content-Type: multipart/alternative * ^Content-Type:.*(audio/x-|application) * name=.*\.(scr|com|bat|pif|lnk|exe) { :0 /dev/null }

i.e. Any email with a multipart/alternative or audio/x-|application attachment with a filename ending in .scr, .com, .bat, .pif, .lnk or .exe is to be deleted.

My first maildrop attempt is below (dont laugh!):

if ((/^Content-Type: multipart/alternative/) || \ (/^Content-Type:.*(audio/x-|application/)) && \ (/name=.*\.(scr|com|bat|pif|lnk|exe/))) { to "$VDIR/Maildir/.Virii" }

No doubt this is probably the totally wrong direction! :-)