Re: [Exim] how to: safely add a Message-ID-header?

Top Page
Delete this message
Reply to this message
Author: David Woodhouse
Date:  
To: Jochen Erwied
CC: exim-users
Subject: Re: [Exim] how to: safely add a Message-ID-header?
On Mon, 2004-01-26 at 07:45 +0100, Jochen Erwied wrote:
> --
> Currently I'm facing a problem which I didn't find explained.
>
> I'd like to add a Message-ID:-header to remote mails if it is not present.


You can add a Message-ID as Exim before 4.30 would have done, with
something like the following in a DATA ACL:

  warn  condition = ${if !def:h_Message-ID: {1}}
        message = Message-ID: <E$message_id@$primary_hostname>



> The reason for this is that some newsletters don't come with ID's, but
> procmail is used to filter out duplicates by Message-ID, which does not
> work with empty ID's.


But you will get _unique_ Message-ID headers from the above -- there
won't be any duplicates if you receive the same message twice from a
remote host; only if you receive one message to multiple recipients.

--
dwmw2