logo       

procmail->maildrop conversions: msg#00057

mail.maildrop

Subject: procmail->maildrop conversions


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! :-)

--
Aj.
Sys. Admin / Developer


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise