Hello procmail experts,
first of all thanks for your support.
Professional Software Engineering schrieb:
<http://www.xray.mpe.mpg.de/mailing-lists/procmail/2002-08/msg00027.html>
Modify as appropriate for other attachment extensions, though the gutz
at the bottom of the recipe is what you should focus on if you're
using something like spambouncer or something that will otherwise flag
a message as having been spam or whatever, and then you'd take action
on it in a similar fashion.
I tried the "truncate the body" method:
:0
* ! VIRUSNAME ?? ^^^^
{
# trucate the body
:0bfi
| echo "(body discarded)"
# cannot reply to the sender because it is probably forged.
# (given crap like Klez and SnoWhite), so just
# send advisory to the listadmin.
REPLYTO=$BOUNCER
BOUNCEMSG=virus.msg
BOUNCESUBJ="virus rejected [$VIRUSNAME]"
# Include bounce handler code
INCLUDERC=bouncer.rc
}
This only works well for mails without an attachement. If the mails have
an attachement the body will be cleaned but the echo text won' t be
inserted. Instead an empty mail will be delivered. Does anybody have any
suggestions on this?
Thanks a lot,
Oliver
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail