FromTo: not working?
Julian Field
mailscanner at ecs.soton.ac.uk
Mon Mar 10 12:10:13 GMT 2003
At 11:42 10/03/2003, you wrote:
> > I was quite surprised to see that $msg->(from) included the
> > '<' and '>'.
>
>Quick fix in Exim.pm:
>
>--- Exim.pm.orig Mon Mar 10 12:34:20 2003
>+++ Exim.pm Mon Mar 10 12:39:25 2003
>@@ -255,7 +255,13 @@
> chomp(($metadata{user},$metadata{uid},$metadata{gid}) = split / /,
><$RQf>);
> # envelope-sender (in <>)
> chomp($metadata{sender} = <$RQf>);
>- $message->{from} = lc $metadata{sender};
>+
>+ $from = lc $metadata{sender};
>+ $from =~ s/^<\s*//; # leading and
>+ $from =~ s/\s*>$//; # trailing <>
>+
>+ $message->{from} = $from;
>+
> # time msg received (seconds since epoch)
> # + number of delay warnings sent
> chomp(($metadata{rcvtime},$metadata{warncnt}) = split / /, <$RQf>);
>
>
>This seems to work here but I am not sure about other implications (esp.
>for Exim3). Could someone with more Exim experience please have a look
>at this?
It's nearly right, but not quite. Try the attached patch instead.
Sorry about this folks :-(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Exim.pm.patch
Type: application/octet-stream
Size: 1567 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20030310/85a21e8b/Exim.pm.obj
-------------- next part --------------
--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
More information about the MailScanner
mailing list