Roundcube Community Forum

 

Mail Filter Hack

Started by kidmock, July 07, 2006, 06:57:23 AM

Previous topic - Next topic

kidmock

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.



simoesp

--------------------------------------------------------
**                       S.I.M.O.E.S.P.                       **
--------------------------------------------------------

oslad

Good!

 ??? so, the "Plug-in Architecture" is in urgent need.

SKaero

I like it I hope to see a sample of it soon! ;)

jvels

any news about the mail filter?

mike413

Do you know if that can work with spamassassin? vpopmail? qmail? or qmail-scanner?


Regards.

Mike.

mike413

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.

SteveE

Not sure how well the implementation of this into RoundCube is going but I recently stumbled onto a project called SmartSieve 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.