Jerry Nicholls
2007-Aug-16 11:56 UTC
[Dovecot] Moving a mail between folders and post-processing ?
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 ? Thanks, Jerry. -- Jerry Nicholls E: Jerry.Nicholls at zeninternet.co.uk Core Systems & Networks Manager W: http://www.zen.co.uk/ Zen Internet Ltd. T: 0845 058 9000 F: 0845 058 9005
tomas at tuxteam.de
2007-Aug-16 13:02 UTC
[Dovecot] Moving a mail between folders and post-processing ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Aug 16, 2007 at 12:56:12PM +0100, Jerry Nicholls wrote:> Hi, > > Within Dovecot is there a way of spotting a change to a folder and > running a post-processing script [...]Ah, I posed a similar question (with similar intentions ;-) on this list this month, kindly answered by Timo et al: <http://www.dovecot.org/list/dovecot/2007-August/024601.html> Besides, this plug-in (announced this month) very nearly does what "we" want, so it might be a good start (maybe you could use it as-is): <http://www.dovecot.org/list/dovecot/2007-August/024805.html> HTH - -- tom?s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGxErKBcgs9XrR2kYRAm07AJ9xP5Gc2X2zB7izt6JVLzeJzK0yiACeMBr+ 2HSYzLxdMKyYGdLQ+DXYa6A=vJjU -----END PGP SIGNATURE-----
Angel Marin
2007-Aug-16 16:25 UTC
[Dovecot] Moving a mail between folders and post-processing ?
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/