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