[Mimedefang] Action_Notify_Administrator

Rajesh Bhandari BhandaR at mail.nlm.nih.gov
Tue Nov 5 12:23:01 EST 2002


>>> hostmaster at stikman.com 11/05/02 11:58AM >>>
> I have the following code in my mimedefang-filter under the filter section.
> I noticed it was triggered a few times yesterday, but I was never sent an
> e-mail to my administrator e-mail.  Any ideas?
>
>     $head = $entity->head;
>     $charset = $head->mime_attr("content-type.charset");
>     if (defined($charset)) {
>         $charset =~ tr/A-Z/a-z/;
>         if ($charset eq "ks_c_5601-1987" or
>             $charset eq "euc-kr" or
>             $charset eq "iso-2022-kr" or
>             $charset eq "big5" or
>             $charset eq "gb2312" or
>             $charset eq "gb2312_charset") {
>         return action_bounce("Foreign spam not accepted. Please contact
> Postmast
> er for details.");
>         action_notify_administrator("Foreign spam message rejected.");
>         }
>     }

The action_notify_administrator probably needs to be -before- the return action_bounce.  It's returning before it get to the action_notify_administrator line.

Rajesh





More information about the MIMEDefang mailing list