Re: [Dovecot] Run command when moving messages

2008-04-21 Thread Johannes Berg
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


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Run command when moving messages

2008-04-20 Thread Alexander Prinsier
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



[Dovecot] Run command when moving messages

2008-04-20 Thread Juan Asensio Sánchez
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