Re: [Dovecot] Sieve Rule for Folders

2009-03-31 Thread Allan Cassaro
On Mon, Mar 30, 2009 at 11:09 AM, Stephan Bosch s.bo...@utwente.nl wrote:
 Gerhard Wiesinger wrote:

 Hello!

 Is it possible with sieve to do the following:
 When a new message is added to a folder (e.g. dovecot folder and not
 INBOX) then an action like forwarding it per E-Mail should be triggered.

 Is this possible? If yes, how does the sieve script look like?

 If you want to do this using Sieve through IMAP (i.e. when appending new
 messages): currently no. There is work in progress to produce an IMAP
 extension that allows setting such scripts for specific folders and
 operations on those folders. This is nowhere near finished however and
 implementing this is not trivial.

 If possible, can a shell script also be triggered as action?

 Not with Sieve. Perhaps there is a plugin for IMAP that allows triggering
 shell scripts when accessing certain folders, but I really wouldn't know.

 PS: if you are trying to build a spam learning folder: there is a plugin for
 that called antispam.

BTW, the antispam plugin is ready for dovecot 1.2?

Regards.


Re: [Dovecot] Sieve Rule for Folders

2009-03-31 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 31 Mar 2009, Allan Cassaro wrote:


BTW, the antispam plugin is ready for dovecot 1.2?


Currently not, see thread:

[Dovecot] antispam plugin for Dovecot v1.2

Bye,

- -- 
Steffen Kaiser

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

iQEVAwUBSdITwHWSIuGy1ktrAQKV7wgAtsgFXWNI6VbY+wweEkFVJcE50i70a9Av
zbgZhKvdpcKjsKShPTkqGXR7gf3p3cFgYJXtPkMPimg5RX58nlvSx0HdfKBLVMqp
uust8Vv0/uN3D3W3CBS440oHqoOlAebYK61kNyCWzmh8Ebzdu+bnkpmFhp4w00eX
ls2qpan120mwI0nIGukMmAczuoYhSQ1lXMnvYH5JwJkPe9Qrsq5NM6Y2hwI9YWTR
bYIYz/ywJ9X+WOCMf21nxDajyTUNO0OOAUYhrVGX5E12ufQpzLb3GI2ve9xqcJbr
BDZZWksVKzn8yzAkt05kEi9DCUdnjqqKn0HJ7dB3WA6z3cKKmVx+Fw==
=JcbO
-END PGP SIGNATURE-


[Dovecot] Sieve Rule for Folders

2009-03-30 Thread Gerhard Wiesinger

Hello!

Is it possible with sieve to do the following:
When a new message is added to a folder (e.g. dovecot folder and not 
INBOX) then an action like forwarding it per E-Mail should be triggered.


Is this possible? If yes, how does the sieve script look like?

If possible, can a shell script also be triggered as action?

Thanx.

Ciao,
Gerhard

--
http://www.wiesinger.com/


Re: [Dovecot] Sieve Rule for Folders

2009-03-30 Thread Stephan Bosch

Gerhard Wiesinger wrote:

Hello!

Is it possible with sieve to do the following:
When a new message is added to a folder (e.g. dovecot folder and not 
INBOX) then an action like forwarding it per E-Mail should be triggered.


Is this possible? If yes, how does the sieve script look like?
If you want to do this using Sieve through IMAP (i.e. when appending new 
messages): currently no. There is work in progress to produce an IMAP 
extension that allows setting such scripts for specific folders and 
operations on those folders. This is nowhere near finished however and 
implementing this is not trivial.



If possible, can a shell script also be triggered as action?
Not with Sieve. Perhaps there is a plugin for IMAP that allows 
triggering shell scripts when accessing certain folders, but I really 
wouldn't know.


PS: if you are trying to build a spam learning folder: there is a plugin 
for that called antispam.


Regards,

Stephan.