Thanks a lot :-) it works just like I had hoped for with IMAP. Unfortunatly, the mail_log plugin won't start with Pop3 anymore. I get the following error in the log:
Dec 18 18:24:49 bardur-desktop dovecot: POP3(bardur): dlopen(/usr/local/lib/dovecot/pop3/lib20_mail_log_plugin.so) failed: /usr/local/lib/dovecot/pop3/lib20_mail_log_plugin.so: undefined symbol: imap_write_flags Dec 18 18:24:49 bardur-desktop dovecot: Fatal: POP3(bardur): Couldn't load required plugins As I mentioned, I want to track when users read messages by looking at when the \Recent or \Seen flags change. A Pop3 session can set these flags, but I don't think (or know how) these changes can be logged by the mail_log plugin. Is it possible to log flag changes done by the pop3 session? > Subject: Re: [Dovecot] More info from mail_log plugin > From: t...@iki.fi > To: bhas...@hotmail.com > CC: dovecot@dovecot.org > Date: Sun, 14 Dec 2008 07:23:49 +0200 > > 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=<f...@bar.org> > _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us