I have started developing a Sieve Mail Filter hack.
I'm not a coder so this may take some time.
If any one is willing to help, let me know and I will set up an SVN Server.
Here is my plan...
using the sieve php lib
http://sieve-php.sourceforge.net/Build the following tasks and actions:
if ($_task=='sieve')
{
include_once('program/steps/sieve/func.inc');
if ($_action=='save-rules')
include('program/steps/sieve/save_rules.inc');
if ($_action=='edit-rules' || $_action=='add-rules')
include('program/steps/sieve/edit_rules.inc');
if ($_action=='delete-rules')
include('program/steps/sieve/delete_rules.inc');
if ($_action=='show-rules')
include('program/steps/sieve/show_rules.inc');
if ($_action=='list-rules' && $_GET['_remote'])
include('program/steps/sieve/list_rules.inc');
}
Action List-Rules
1. Login to the Sieve Server using the RC session username and password
2. Get the active sieve script and parse for display
3. Log Out.
Action Add-Rules/edit-rules/delete-rules
1. Put each rule into an array
2. Allow the moving (up/down)of rules based order of array.
3. Write rules to file or database to build sieve script
4. Upload and set seive sript as active
I plan on just concentrating on simple header match rules for now and then building on it for advanced script building. I'm using smartsieve, websieve, avelsieve as my referrences.