[Dovecot] Run command when moving messages

Alexander Prinsier dovecot at aphexer.mailhaven.com
Wed Apr 23 00:05:30 EEST 2008


The easiest way to do this seems to me is adapting the dspam backend of
the antispam plugin to a generic "exec" backend, that calls some program.

The antispam plugin was designed to do exactly this, monitoring moving
messages, so you better make use of it ;)


Juan Asensio Sánchez wrote:
> Hi
> Is it possible to run a command when a message is moved from a folder
> to another? I want this to simulate the antispam plugin, so one script
> would be ran when a message is moved to/from the spam folder, so the
> sa-learn command would be called.
> Thanks

More information about the dovecot mailing list