[Dovecot] VERY cool add-on request.
David A. Lee
dlee at calldei.com
Sat Mar 18 15:56:56 EET 2006
I've just now been reading about dnotify and inotify, and while if they
existed on my system could work for this, I still think direct support would
be cleaner and more efficient. D/I notify both require kernel patches not
available on all Linux systems (and not at all on non-Linux systems). They
require an additional program to be running at all times monitoring the
directory (probably one or more per user), and in one case it doesn't even
say which file changed so the overhead of scanning the files in the
directory is added on ... plus if you have multiple directories you'd have
to write a special variant that kept a bunch of directory handles open.
Very cumbersome.
While having a hook into dovecot to invoke a process when a particular
folder was touched would be very clean. Maybe the "plugin" mechanism could
be used to write such a thingy.
> Adam M. Dunn ha scritto:
>
>>I would like to have the ability to execute a command on a folder based
>>on a user doing something like copying a message to that folder. This
>>could be accomplished with a config file directive.
>>
> You could simply use a normal folder and use dnotify/inotify to trigger
> the execution of salearn.
>
> In a larger evironment, all users could share a folder with a single
> dnotify daemon, moving dropped emails to a specified directory and using
> cron to spawn salearn.
>
> That would be the simpler solution, imho.
>
> Massimo
>
>
More information about the dovecot
mailing list