Hi David, everyone,
David F. Skoll wrote:
3.) Notify recipient, who can determine if there's any chance the mail was legit and request it either from the administrator or sender.
That's OK, but as a recipient, I would find it quite annoying, and I would set up a rule to discard such notifications anyway.
True.. but as an admin, I don't want to be responsible for that one false positive.
You could construct a new warning message using the MIME::Tools functions, and call replace_entire_message() inside filter_end to replace the entire message with your warning message.
my $msg = MIME::Entity->build(Type => "text/plain",
Encoding => "7bit",
Data => ["first line.\n",
"Second line.\n"
]);
replace_entire_message($msg);
action_change_header("Subject", "Virus warning");
Thank you very much, I was just getting started on googling that one together. One (hopefully) final question, if I may:
replace_entire_message() may only be called from filter_end(), but the virus-scanning gets done in filter_begin(). What would be the proper way to transfer the outcome of the virus-scan between those two functions, or should I just move the virus-scanning to filter_end() too?
Regards, Paul Boven. _______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

