[Mimedefang] canonicalize_email error
alan premselaar
alien at 12inch.com
Thu May 5 00:05:11 EDT 2005
Tim Boyer wrote:
> I tried putting in one of the subroutines that David presented at the
> Lisa '03 session. It's got the line
>
> $recipient = canonicalize_email($recipient);
>
>
> in filter_recipient.
>
> But when I run it, I get this in the logs:
...snip...
> Have I typed it wrong? Spelled it wrong?
>
>
>
Tim,
You need to actually define a subroutine called "canonicalize_email"
in the filter as well.
mine looks like:
sub canonicalize_email ($) {
my ($email) = @_;
$email =~ s/^<//;
$email =~ s/>$//;
return lc($email);
}
basically all it does is remove any < or > from the email and return it
in lowercase.
hope this helps.
alan
More information about the MIMEDefang
mailing list