Re: [Exim] Address Re-writing

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Phil White
CC: exim-users
Subject: Re: [Exim] Address Re-writing
On Tue, 26 Jun 2001, Phil White wrote:

> Hence, in my abortive attempt, I firstly (assuming that the headers are
> rewritten in the order which they are specified, which I now don't think they
> are)


Aha! That will be your problem. I guess I don't need to look at your
debug output - but will save it. Let me know if I do need to look. Here
is an extract from the specification which I think you must have
overlooked. It comes from section 34.2:

The order in which header and envelope addresses are rewritten is undefined,
may change between releases, and must not be relied on, with one exception:
when a message is received, the envelope sender is always rewritten first,
before any header lines are rewritten. For example, the replacement string for
a rewrite of an address in "To:" must not assume that the message's address in
"From:" has (or has not) already been rewritten. However, a rewrite of "From:"
may assume that the envelope sender has already been rewritten.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.