[Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Luca Bertoncello
Hi, list!

I use Dovecot 1.1.14 at work. It is configured to manage IMAP and IMAPs.
Exim is the MTA of the Network.

Of course, I installed SpamAssassin and ClamAV to check all incoming E-Mails.

An, of course, some E-Mail marked as Spam are Ham and some E-Mail marked as Ham
are Spam...

To teach SpamAssassin I create for every user two folder: DochSpam (for Spam
E-Mails not marked) and FalscheSpam (for Ham E-Mails marked as Spam).

Every hour a cronjob search for E-Mails in these folders and call sa-learn to
teach SpamAssassin.

All run perfectly, but I'd like to modify this method and call automatically
the script when the user move an E-Mail to DochSpam or FalscheSpam.

I searched in Google, but I cannot found any useful link...

How can I trigger an action (script calling) based on event (E-Mail will be
moved to a folder) in Dovecot?

Thanks for your help!
Luca Bertoncello
(lucab...@lucabert.de)


Re: [Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Luca Bertoncello
Steffen Kaiser skdove...@smail.inf.fh-brs.de schrieb:

 Look at the antispam or pipe plugins of Dovecot.

Hello!

Thanks for your answer!

Could you say me, where I can find this pipe plugin?
Ich searched in Google, and I found many list messages about it, but no links
to download it...

Thanks
Luca Bertoncello
(lucab...@lucabert.de)


Re: [Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 30 Apr 2009, Luca Bertoncello wrote:


How can I trigger an action (script calling) based on event (E-Mail will be
moved to a folder) in Dovecot?


Look at the antispam or pipe plugins of Dovecot.
Or write a demon watching with something like inotify and act accordingly.

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSflsk3WSIuGy1ktrAQKMbAgAueg5RPbYQTlTcilNCqYilv3nVSraJxiA
Uz2XmkO/IlRtYlS6TErhTXikMQbAmWHMKd29M+VZPuFFCAyC1LL3Y8QnWxJ6k77b
hl6z0e/NDSnsSbyPIs4VjMgEedg0U2Bl2Yb0+OHmJF789Bzp+IqDh+NptjqIagkJ
uJXkenJ+DvYZoSLwmG+7gKSnHPpkOBQU9ng4gKATL69OoRfBdhp+89SmpQ8N23R8
s/XwEi7CG5c/rUsa2JbMeRADqrdfI/Mqn800aeNID05d7svDKMbG1x37kugP3mKg
+G0MpKaXdNfpz3VhDA9M9dr7s3n+fWWC7Bq7oJosvTnuAIIeYhRxtQ==
=eZnE
-END PGP SIGNATURE-


Re: [Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 30 Apr 2009, Luca Bertoncello wrote:


Could you say me, where I can find this pipe plugin?


Oh, looks like it has been dropped. There had been a discussion: 
http://www.mail-archive.com/dovecot%40dovecot.org/msg06624.html but the 
links are dead.


I'm using antispam.

Sorry,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSfmTt3WSIuGy1ktrAQKhiQf8CfXa110R2Xvt+CsRXr6e/8l7phrU2gfq
pbhrb1P3dkyZhT2UbTXO7ywMfd0XAuxVzEkJEmhg6oj54dS0Wc4VG2igMxir2o5g
VXTyMJ5yodOAvp3Hv8QMMO+VJ7TLIZB0r+ah5D/pUJYB3B5Ga4cg1lKSKBwWVPm5
0qd7/dTfG+davyXwCgu7dE2UpLTV3yrzmUwnJQcmEUd+UWPXUPCNbehwWxpeVv3+
Ab9FxfwSljADTdS7Uf5GNTnJ0p8tX3gwdxL3Ot5dbetWFFv2Y9A99yHEa+1rkTCk
liuGogFdAbMe6GQo/rtl2omcLda9GCaVthhdztqYXTLBOrlRdQSTww==
=AO+M
-END PGP SIGNATURE-


Re: [Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Matthijs Kooijman
Hi all,

 Look at the antispam or pipe plugins of Dovecot.
 Or write a demon watching with something like inotify and act accordingly.
the antispam plugin can be found here:
http://johannes.sipsolutions.net/Projects/dovecot-antispam

Gr.

Matthijs


signature.asc
Description: Digital signature


Re: [Dovecot] How to call a script when an E-Mail will moved in a folder?

2009-04-30 Thread Andrew Roberts

On Thu, 30 Apr 2009, Luca Bertoncello wrote:


How can I trigger an action (script calling) based on event (E-Mail will be
moved to a folder) in Dovecot?


If you run a recent linux kernel (=2.6.13) configured with inotify 
support, you can set up incron to run your existing scripts, but 
triggered by a filesystem event insted of a time period.  It's worked 
well for my purposes for the last two plus years.