[Dovecot] More info from mail_log plugin

Timo Sirainen tss at iki.fi
Sun Dec 14 07:23:49 EET 2008


On Fri, 2008-11-28 at 12:16 +0100, Bardur Haskor wrote:
> HiWe need to track exactly when our users read messages.
> Unfortunately, I haven't been able to figure out how we can achieve
> this with Dovecot. Then I saw the mail_log plugin.Is it possible to
> extend the plugin to also log system flag changes? This would be
> great, because then we could see in the log files when the Seen flag
> has been set. Changes in user defined flags would also be interesting
> to track.I know this would create a lot of log entries, but for us
> this wouldn't be a problem. Maybe the plugin would default to not
> tracking flag changes, but could be configured to do so.

I added this code to v1.2 now. There you can use:

mail_log_events = delete undelete flag_change
mail_log_fields = uid box msgid flags

And it logs like:

imap(tss): Info: flag_change: uid=125823, flags=(\Answered foo), msgid=<foo at bar.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081214/fd375585/attachment.bin 


More information about the dovecot mailing list