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

Pàgina inicial
Delete this message
Reply to this message
Autor: Frank Elsner
Data:  
A: exim-users
Assumpte: Re: [exim] Adding missing date header to incoming mail (v. 4.62 on OSX 10.4.6)
On Sun, 6 Aug 2006 16:26:40 -0400 My BSD wrote:
> Verizon Wireless' notifications to its subscriber of the availability of
> its monthly bill do not contain a date header. As a result, the
> messages get buried by the MUA when sorted by ascending date.
>
> After reading "Filters.txt" and referring to the Spec, I wrote the
> following very simple System Filter:
>
> ---------------------------------------------
> # Exim Filter
> #
> if      $message_headers contains  "^Date:"
> then
> else    headers add "Date: $tod_full"
> endif
> #
> ---------------------------------------------

>
> This filter seems to work O.K.
>
> Just wandering if there is a more elegant way to go about it?


I do it this way in the acl_smtp_data ACL:

  warn    condition = ${if !def:h_Message-Id: {1}}
          add_header = Message-Id: <E$message_id@$qualify_domain> (auto-added)
          log_message = Added Message-Id <E$message_id@$qualify_domain>



--Frank Elsner