Re: [exim] Logging particular header | returning message ID

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Graeme Fowler
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Logging particular header | returning message ID
On Wed, 2008-05-14 at 11:16 +0200, Björn Keil wrote:
> While both would work logging the message ID (of the sending program)
> would make it easier...


Is this message ID normally added as a specific header, like, erm,
Message-ID: <blablah> ?

If it is, you can do something like this in the DATA ACL:

warn log_message = INFO: $h_message-id:
     condition   = ${if eq{$h_message-id:}{} {0}{1}}


[untested]

That pretty much says: if the header line Message-ID: isn't empty, log
it but prefix it with INFO:. You can use any header you like.

There's bound to be more than one way to do it though :)

Graeme