[Dovecot] More info from mail_log plugin
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.RegardsBardur Ha Skor
Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=w...
On Fri, 2008-11-28 at 12:16 +0100, Bardur Haskor wrote:
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@bar.org>
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?
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&...
On Thu, 2008-12-18 at 19:49 +0100, Bardur Haskor wrote:
This should fix it: http://hg.dovecot.org/dovecot-1.2/rev/5eb05134db86
participants (2)
-
Bardur Haskor
-
Timo Sirainen