[Dovecot] notification plugin
Hi,
I'm pretty new to dovecot's codebase and trying to write a plugin which performs certain plugins if new mail arrives in a user's mailbox.
I saw the mail-log plugin and was playing around with it but it seems to not create events if new mails arrive but only if mail are copied or saved from an IMAP connection. Are there any hooks I can base my plugin on to get events in the above case? Any pointers?
Thanks, Wolfgang
On Mon, 2010-09-06 at 07:41 +0200, Wolfgang Rosenauer wrote:
I saw the mail-log plugin and was playing around with it but it seems to not create events if new mails arrive but only if mail are copied or saved from an IMAP connection.
You didn't mention what Dovecot version you were looking at. v2.0 has notify plugin which can be easily used to hook into mail_save event.
Hi,
On Mon, Sep 6, 2010 at 3:53 PM, Timo Sirainen tss@iki.fi wrote:
On Mon, 2010-09-06 at 07:41 +0200, Wolfgang Rosenauer wrote:
I saw the mail-log plugin and was playing around with it but it seems to not create events if new mails arrive but only if mail are copied or saved from an IMAP connection.
You didn't mention what Dovecot version you were looking at. v2.0 has notify plugin which can be easily used to hook into mail_save event.
I looked at 2.0.1. Hmm, so mail_save event is supposed to show mails delivered into a mailbox? Which types of delivery are supported? I configured mail-log which uses notify plugin but didn't see any log message (event) when I had mail posted via deliver.
Wolfgang
On Mon, 2010-09-06 at 16:50 +0200, Wolfgang Rosenauer wrote:
You didn't mention what Dovecot version you were looking at. v2.0 has notify plugin which can be easily used to hook into mail_save event.
I looked at 2.0.1. Hmm, so mail_save event is supposed to show mails delivered into a mailbox? Which types of delivery are supported?
All types.
I configured mail-log which uses notify plugin but didn't see any log message (event) when I had mail posted via deliver.
It was enabled also for lda? doveconf -f service=lda -x mail_plugins
You had enabled the save events? plugin { mail_log_events=save }
participants (2)
-
Timo Sirainen
-
Wolfgang Rosenauer