26 Sep
2012
26 Sep
'12
3:53 p.m.
Op 9/26/2012 1:52 PM, Maciej Uhlig schreef:
This is a dovecot sieve log line:
2012-09-26T13:47:52+02:00 host/192.168.1.1 dovecot: [ID 583609 mail.info] lmtp(7565, user@domain): vTtJDTrrYlCNHQAAs1WjhA: sieve: msgid=<MSGID>: stored mail into mailbox 'INBOX'
Would it be possible to have mail size logged here?
You can use the deliver_log_format setting. The default value is: "msgid=%m: %$"
I'm not sure where this is documented, so I took a look at the source code to find out which substitutions exist:
static struct var_expand_table static_tab[] = {
{ '$', NULL, NULL },
{ 'm', NULL, "msgid" },
{ 's', NULL, "subject" },
{ 'f', NULL, "from" },
{ 'e', NULL, "from_envelope" },
{ 'p', NULL, "size" },
{ 'w', NULL, "vsize" },
{ '\0', NULL, NULL }
};
So, this should work for you:
deliver_log_format=msgid=%m size=%p: %$
Regards,
Stephan