Re: [exim] Adding missing date header to incoming mail (v. 4…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: My BSD
Cc: exim-users
Asunto: Re: [exim] Adding missing date header to incoming mail (v. 4.62 on OSX10.4.6)
On Sun, 6 Aug 2006, My BSD wrote:

> ---------------------------------------------
> # Exim Filter
> #
> if      $message_headers contains  "^Date:"
> then
> else    headers add "Date: $tod_full"
> endif
> #
> ---------------------------------------------

>
> This filter seems to work O.K.


I'm surprised. You are looking for the exact text "^Date:" which I
would not expect ever to be found. Perhaps you mean

if $message_headers matches "(?m)^Date:"

or

if $message_headers matches "\\\\nDate:"

> By the way, was not successful in negating the condition with "not."


Presumably because it isn't the right condition. :-)

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book