[Dovecot] Run command when moving messages
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
Hi,
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 ;)
Alexander
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
On Tue, 2008-04-22 at 23:05 +0200, Alexander Prinsier wrote:
Hi,
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.
In fact, there is such a backend, it's just called 'mailtrain'.
johannes
participants (3)
-
Alexander Prinsier
-
Johannes Berg
-
Juan Asensio Sánchez