[Dovecot] mail_log plugin updates

Tan Shao Yi tansy at pacific.net.sg
Thu Jun 21 04:11:32 EEST 2007


Hi Timo,

Will it be too difficult to log copying of e-mails into the IMAP account 
from say, a local folder to a folder on IMAP? :)

Cheers,
Tan Shao Yi

On Thu, 21 Jun 2007, Timo Sirainen wrote:

> 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?
>


More information about the dovecot mailing list