[Dovecot] Update notifier

Sebastjan Trepca trepca at gmail.com
Fri Jul 22 17:29:55 EEST 2005


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 at 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-----
> 
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050722/a2d9f38a/attachment-0003.html>


More information about the dovecot mailing list