[Dovecot] Update notifier
Hi,
I'm trying to add a code in dovecot that will notify my services when a message is updated/added/moved/copied. I checked dovecot code a bit and mail-storage.c seems to be a nice place for tracking but I'm not sure if I can track all changes there.
Does anyone have any experience with this topic or ideas?
Thanks,
Sebastjan
On Fri, 2005-07-22 at 12:08 +0200, Sebastjan Trepca wrote:
I'm trying to add a code in dovecot that will notify my services when a message is updated/added/moved/copied. I checked dovecot code a bit and mail-storage.c seems to be a nice place for tracking but I'm not sure if I can track all changes there.
There are no update/move commands in IMAP, so you'll just need to hook into saving and copying. Normally copying also goes through save unless you're using maildir + maildir_copy_with_hardlinks=yes.
See quota plugin for example how to hook into saving and copying: http://dovecot.org/patches/1.0/quota.tar.gz
Probably better to do it as a plugin than directly modify the sources, so you don't have to keep patching it for each new release.
participants (2)
-
Sebastjan Trepca
-
Timo Sirainen