Roundcube Community Forum

Third Party Contributions => Old Style Plug-Ins => Topic started by: kidmock on July 07, 2006, 06:57:23 AM

Title: Mail Filter Hack
Post by: kidmock on July 07, 2006, 06:57:23 AM
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.

Title: Re: Mail Filter Hack
Post by: flosoft on July 07, 2006, 07:45:16 AM
Sounds nice :)
Title: Re: Mail Filter Hack
Post by: simoesp on July 07, 2006, 09:58:39 AM
veryyyyyyy nive ;D
Title: Re: Mail Filter Hack
Post by: oslad on July 07, 2006, 11:26:32 AM
Good!

 ??? so, the "Plug-in Architecture" is in urgent need.
Title: Re: Mail Filter Hack
Post by: SKaero on August 04, 2006, 04:57:06 AM
I like it I hope to see a sample of it soon! ;)
Title: Re: Mail Filter Hack
Post by: jvels on August 10, 2006, 04:39:14 AM
any news about the mail filter?
Title: Re: Mail Filter Hack
Post by: mike413 on August 17, 2006, 02:52:31 AM
Do you know if that can work with spamassassin? vpopmail? qmail? or qmail-scanner?


Regards.

Mike.
Title: Re: Mail Filter Hack
Post by: mike413 on August 18, 2006, 02:01:12 AM
Any body know howto make in php (into RoundCube) a simple filter in the inbox?
for example: if i received a mail that have in the subject *****SPAM***** then move to the Spam folder or Junk folder?  

it's easy or not? ???


Thanks in advance.

Mike.
Title: Re: Mail Filter Hack
Post by: SteveE on January 16, 2007, 10:47:04 AM
Not sure how well the implementation of this into RoundCube is going but I recently stumbled onto a project called SmartSieve (http://smartsieve.sourceforge.net/) which does the same thing and looks to have a very nice interface for creating and managing sieve scripts.

I started thinking of ways to merge this into RoundCube but haven't had much time so all I've thought up is doing something the same way as we have the html editor in the SVN...I hope I have time to look into this soon since for me it is needed to have the users be able to edit these for out of office replies.