procmail
[Top] [All Lists]

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

2004-03-10 08:24:56
Michelle Konzack wrote:
> [...]
Now if 'f-prot' find a Virus, I like to delete the part of the E-Mail.

Just to be clear: You only want to delete (quarantine/defang) the attachment IF it is actually infected with a virus (as detected by f-prot), right?

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

How close to the original message do you want it to be? Would using something like mime-construct to wrap up the remaining messages parts and enclose them in a "this message was infected, uninfected portions are attached" message to the original recipient suffice? or do you want the original message with "infected content removed HERE"?

I'm using mime-construct in a bash script to "wrap" the original spam message (base64 encoded) in a spam report that shows hits from a variety of scanning tools.

- Bob



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