Jonathan Sambrook wrote:
Hi,
I'm having difficulty getting Exim to rewrite headers containing address
phrases in the incorrect (unquoted) form:
[EMAIL PROTECTED] <[EMAIL PROTECTED]>
to correct form:
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
[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 @.
[or even with consistent less grepable, more readable tidying...]
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 <[EMAIL PROTECTED]>
LOG: address_rewrite MAIN
"[EMAIL PROTECTED]" from from: rewritten as "AB <[EMAIL PROTECTED]>" by rule 1
newlen=29 newtype=F newtext:
from: AB <[EMAIL PROTECTED]>
remainder:
rewrite_one_header: type=T:
to: [EMAIL PROTECTED]
8<------------------------------------------------------------------------
If the only factor I alter is that my test phrase is now '[EMAIL PROTECTED]' I
get no
rewriting:
8<------------------------------------------------------------------------
rewrite_one_header: type=F:
from: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
rewrite_one_header: type=T:
to: [EMAIL PROTECTED]
8<------------------------------------------------------------------------
Can someone beat me with the clue stick please?
Regards,
Jonathan
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/