procmail
[Top] [All Lists]

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

2004-03-10 08:24:56


From: Michelle Konzack
Sent: Wednesday, March 10, 2004 1:03 AM
[...]
But not like RAV-AV which overwrite the mime-part with "spaces".
So I like to reduce the filesize and put an automaticly generated 
Header in it.

Oh yes, I like to do this only in BASH and no perl (which I do not 
understand) :-/

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 fb
| 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