if ( /^[:space:]+filename=.*\.(vbs|exe|com|bat)\"$/:b )
{
/^Subject: !.*/
MATCH2=escape($MATCH2)
xfilter "$REFORMAIL -I'Subject: [ALERT: ATTACHMENT] $MATCH2'"
}
Unfortunatelly your last tip didn't work as I needed. Let me explain this
a little bit more.
I have a freebsd + qmail + amavis
I'm tring to block e-mails that has attached some file types.
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.
Any idea of why and how can I fix it?
Exemplo:
1----------------------------------------------------------: