Jeremy Harris <[EMAIL PROTECTED]> writes:

> Ferenc Wagner wrote:
> 
>> For tracking email, I'd like to log the message-id generated by Exim
>> for mail submitted by a local process.  How could I achieve this?
>
> Look in the docs at http://exim.org for "log_message" and "$message_id"

OK, I cooked up this:

acl_not_smtp = acl_log_message_id
begin acl
acl_log_message_id:
  warn log_message = Generated message id: $message_id
  accept

And mainlog says:

2008-08-22 15:53:12 1KWX4i-0002NF-0C U=wferi Warning: Generated message id: 
1KWX4i-0002NF-0C
2008-08-22 15:53:12 1KWX4i-0002NF-0C <= [EMAIL PROTECTED] U=wferi P=local S=341

Which makes me feel stupid.  Apparently each log line is prefixed with
the message id, sort of.  Because in the received mail I find:

Message-Id: <[EMAIL PROTECTED]>

Where does the E prefix come from?
-- 
Thanks,
Feri.

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to