Hi,
Here is a patch to integrate management of Sieve filter rules into RC. The patch uses the managesieve protocol to communicate with the server. Most of the code for this patch was taken from Alec’s Roundcube managesieve patch
Roundcube :: Managesieve plugin I just changed the UI and added a new option or two, Alec did all the hard work! The patch has been tested with Dovecot-managesieve.
The rule files on the server are written in a certain way that this code can understand so editing rules with other clients will not work.
The patch works with rev2099 (SVN Version) and adds a 'Filters' tab to the 'Personal Settings'. I have attached a screenshot as well as the patch. At the moment there is
no version of this patch against a release version of RC, there are two many changes since 0.2b to be able to apply it easily.
Install
=======
To apply the patch run `patch -ul -d /path/to/roundcubemail/ -p1 < /path/to/patch`. This should be all you need to do to install the patch.
Config
======
The config file is located in plugins/sieverules/config.inc.php
* Set the host where managesieve is listening
* Set the port managesieve is listening on
* Set the folder delimiter (if your managesieve implementation uses a different one to your IMAP server
* Set the name of the ruleset in which your sieve rules are stored
* Enable/disable the actions you want
* Define any predefined rules you wish to use
**UPDATE 20081214**
I have added a new verison of the patch, sieverules.BETA.r2149.patch. This version has a new config variable - include_imap_root to specify whether or not the imap_root should be added to the folder path in the sieve script.
**UPDATE 20081221**
I have added a new version of the patch, sieverules.BETA.r2184.patch. This version fixes a bug making it impossible to delete the first rule in the list and adds a disable rule option to the UI so that rules don’t have to be deleted to stop them being used.
**UPDATE 20090102**
I have added a new version of the patch, sieverules.BETA.0_2.patch. This version works with the 0.2 stable release of RoundCube. I have also made a number of improvements to the script, including:
* Added support for rexeg tests
* Added support for imapflags
* Added support for relational operators and comparators
* Added support for subaddress tests
* Added support for notify action
**UPDATE 20090108**
sieverules.BETA.0_2stable.patch - works with the release on the RC site
sieverules.BETA.r2198.patch - works with the SVN version
THIS PATCH IS NO LONGER SUPPORTED. IT HAS NOW BEEN CONVERTED TO USE THE PLUGIN API. FURTHER DISCUSSION CAN BE FOUND HERE http://www.roundcubeforum.net/api-based-plugins/4878-sieverules-managesieve-plugin.html