Hi,

Drav Sloan said:
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch31.html
> 
> Section 10. Flags controlling the rewriting process
> 
> When an address in a header is rewritten, the rewriting normally applies
> only to the working part of the address, with any comments and RFC 2822
> phrase left unchanged. For example, rewriting might change
> 
> From: Ford Prefect <[email protected]>
> 
> into
> 
> From: Ford Prefect <[email protected]>
> 
> Sometimes there is a need to replace the whole address item, and this
> can be done by adding the flag letter w to a rule.

I've looked at the 'w' flag before.  It seems that the phrase is not passed to 
the matching rule when it's used, but the rewritten address overwrites the 
original phrase/address combination, thus allowing you to generate a phrase, 
but not one based on the original.  That's the way it seems to me, at least.  
The phrase might be available in a $rheader_.*: expansion though?

I think fixing nmh is going to be the answer here, now.  Even if I can get 
to the phrase via a $rheader_.*: expansion, looping through them to test/fix 
each phrase is probably going to be tricky to get right and is probably more 
easily fixed in the nmh code (where it should be done anyway, I guess).

Thanks for your message.

-- 
Cheers, Ian.



The Open University is incorporated by Royal Charter (RC 000391), an exempt 
charity in England & Wales and a charity registered in Scotland (SC 038302).



-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to