[Mimedefang] The action action_notify_sender not work...
Mark Suter
suter at zwitterion.humbug.org.au
Thu Aug 21 01:53:01 EDT 2003
On 2003-08-20, Hernan Dario Arredondo wrote:
> if (filter_bad_filename($entity)) {
> md_log('bad_filename', $fname);
> return action_quarantine($entity, "An attachment named $fname was
> removed from this document as it\nconstituted a security hazard. If you
> require this document, please contact\nthe sender and arrange an alternate
> means of receiving it.\n");
> action_notify_sender($msg);
> }
The "return action_quarantine" is the last thing done - the *return*
means MIMEDefang leaves the function at that point and the line you've
added never gets executed.
Change it to have the return on the last line, that is,
action_XXX(...);
action_XXX(...);
action_XXX(...);
return action_XXX(...);
Read the mimedefang-filter(5) manpage for details on what actions make
sense when combined with other actions.
Yours sincerely,
Mark Suter Miju Systems http://www.miju.com.au/
Phone: +61 0411 262 316 PO Box 176, Corinda Q 4075, Australia
Email: mark.suter at miju.com.au ABN 48 065 548 496
Fax: +61 7 3278 2343
More information about the MIMEDefang
mailing list