Jonathan Sambrook wrote:
> Hi,
>
> I'm having difficulty getting Exim to rewrite headers containing address
> phrases in the incorrect (unquoted) form:
>
> me@??? <me@mydomain>
>
> to correct form:
>
> "me@???" <me@???>
>
>
> [Yes, I know, the sending processes shouldn't be sending badly formatted
> addresses, but our clients are used to our previous Sendmail setup just
> working.]
>
>
> It seems Exim is balking at the first @ sign in the address phrase.
>
> Running with '-d-all+rewite' shows that even a simple rewrite rule
such as:
>
> * $0 fw
>
> doesn't bite when there is an unquoted address phrase containing an @.
Some output to demonstrate might help clarify my problem. Is this a bug?
With my test phrase as 'AB' a simple rule which is triggered by
anything produces:
8<------------------------------------------------------------------------
rewrite_one_header: type=F:
from: AB <pm@???>
LOG: address_rewrite MAIN
"pm@???" from from: rewritten as "AB <pm@???>" by rule 1
newlen=29 newtype=F newtext:
from: blipblop <pm@???>
remainder:
rewrite_one_header: type=T:
to: js@???
8<------------------------------------------------------------------------
If the only factor I alter is that my test phrase is now 'A@B' I get no
rewriting:
8<------------------------------------------------------------------------
rewrite_one_header: type=F:
from: blip@blop <pm@???>
rewrite_one_header: type=T:
to: js@???
8<------------------------------------------------------------------------
>
> Can someone beat me with the clue stick please?
>
> Regards,
> Jonathan
>
>