FromTo: not working?

Donovan Huff | HUFF DATA SYSTEMS donovan at HUFFDATASYSTEMS.COM
Mon Mar 10 12:28:15 GMT 2003


Is this patch for MailScanner-4.13-3, how is it properly applied?


Donovan

----- Original Message -----
From: "Julian Field" <mailscanner at ECS.SOTON.AC.UK>
To: <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Monday, March 10, 2003 6:10 AM
Subject: Re: FromTo: not working?


> 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 :-(


--------------------------------------------------------------------------------


> --
> 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