Re: [Dovecot] Update notifier
Great!
Yes, of course, I just didn't knew that plugins are supported. Are there any documents on this subject? How do you add a plugin to dovecot? Just compile it and copy it to dovecot's lib/imap (like in example) ?
Thanks,
Sebastjan
On 7/22/05, Timo Sirainen tss@iki.fi wrote:
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.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQBC4PdEyUhSUUBViskRApj9AJoCzEM8iNRNaEIcHdGxZDKoSbatFQCfaTMc 62w52fPQr0uE8wb1A8y9kUY= =9gtQ -----END PGP SIGNATURE-----
On Fri, 2005-07-22 at 16:29 +0200, Sebastjan Trepca wrote:
Great!
Yes, of course, I just didn't knew that plugins are supported. Are there any documents on this subject? How do you add a plugin to dovecot? Just compile it and copy it to dovecot's lib/imap (like in example) ?
Yes. Dovecot just loads it then and executes its
participants (2)
-
Sebastjan Trepca
-
Timo Sirainen