[Dovecot] mail_log plugin updates

Timo Sirainen tss at iki.fi
Thu Jun 21 01:03:16 EEST 2007


It supports configuration now in devel version:

  # Events to log. Default is all.
  #mail_log_events = delete undelete expunge copy mailbox_delete
  # Group events within a transaction to one line.
  #mail_log_group_events = 
  # Available fields: uid, box, msgid, size, vsize
  # size and vsize are available only for expunge and copy events.
  #mail_log_fields = uid box msgid size

Without grouping you get pretty similar output than before:

Info: copy: uid=13, dest=Trash, msgid=<20040702035043.7296C300DFC1A at asdf>, size=789
Info: delete: uid=13, msgid=<20040702035043.7296C300DFC1A at asdf>
Info: expunge: uid=13, msgid=<20040702035043.7296C300DFC1A at asdf>, size=789

With mail_log_group_events=yes you get output like this:

Info: copy: uids=15-17,24,26, dest=Trash, size=1534
Info: delete: uids=15-17,24,26
Info: expunge: uids=15-17,24,26, size=1534

The size is the summed size of all the messages. msgids aren't
suppported.

"size" means physical message size, "vsize" means the virtual size with
CR+LF linefeeds.

Does someone want something more?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070621/38f65ae4/attachment-0001.bin 


More information about the dovecot mailing list