procmail
[Top] [All Lists]

RE: how to kill files in mime-mails (maildir)

2004-03-10 09:18:22



From: David W. Tamkin
Sent: Wednesday, March 10, 2004 7:52 AM
[...]

Gary Funck wrote:

# Delete the body, and add a message
:0 fb
| echo; echo "Dangerous file attachment deleted."; echo

Gary, you know that needs an `i' flag.

Yikes. Thnks.

Rewrite:


Something simple:

:0
* VIRUS_FOUND ?? ^^TRUE^^
{
# Got a virus, if we're here

# Remove the Content-Type field
:0 fh
| formail -I Content-Type

# Delete the body, and add a message
:0 fbi
| echo; echo "Dangerous file attachment deleted."; echo

}


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail