Jerry Nicholls escribió:
Hi,

Within Dovecot is there a way of spotting a change to a folder and
running a post-processing script on the email that was moved ? I'm
specifically after a way of seeing either an email entering or leaving a
folder - preferably running a different post-process script depending on
the direction. Essentially if an email enters or is moved out of a
'spam' folder I'd like to mark it as 'spam'/'ham' in the Bayesian
filters respectively.

Is there any such mechanism, or should I start looking at how to write a
plugin to achieve this ? If it's the plugin route is there any good
documentation on the plugin APIs etc ?

Have a look at the pipe[1] and dspam[2] plugins.

[1] <http://article.gmane.org/gmane.mail.imap.dovecot/23815>
[2] <http://johannes.sipsolutions.net/Projects/dovecot-dspam-integration>

--
Angel Marin
http://anmar.eu.org/

Reply via email to