[Dovecot] Update notifier

Timo Sirainen tss at iki.fi
Fri Jul 22 16:40:20 EEST 2005


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050722/a69a5886/attachment-0001.bin>


More information about the dovecot mailing list