Re: [exim] Which headers are filterable ?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Adam Funk
CC: exim-users
Betreff: Re: [exim] Which headers are filterable ?
On Wed, 17 Aug 2005, Adam Funk wrote:

> > if $header_reply-to: contains
> I think it should be "$header_reply-to" without the ":".


It is more pedantically correct to terminate header names with : though
if whitespace follows you can omit it. The reason is that most printing
characters other than colon or whitespace are permitted in header names.
There is nothing wrong with a header line such as:

Funny-{indeed}-[yes!]-header: something

Thus, if you want to use $header_something in a context where white
space does not follow, you must use the terminating colon. Typically
this is in an expanded string such as

${if eq{$header_something:}{....}....

Without the colon there, the header name would not terminate at the }.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book