procmail
[Top] [All Lists]

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

2004-03-10 15:32:29

From: Ruud H.G. van Tol
Sent: Wednesday, March 10, 2004 11:37 AM
[...]
Check out stripmultiparts:

<http://www.xray.mpe.mpg.de/mailing-lists/procmail/2004-02/msg00480.html>


Yup, but that's in Perl, and I was responding to this part of the
request:

From: Michelle Konzack
Sent: Wednesday, March 10, 2004 1:03 AM

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

and regarding Sean's suggestion:

From: Professional Software Engineering
Sent: Wednesday, March 10, 2004 8:37 AM

[...]
# Delete the body, and add a message
:0 fbi
| echo -e "Dangerous file attachment deleted by $HOSTNAME.\n"

(or similar - I'd strongly advise you drop SOMETHING in there to indicate
where the attachment was removed).

I did say "sketch" in my original reply. Adding info. about the deleted
attachment is an exercise left for the reader.



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