Author Topic: Mail Filter Hack  (Read 16334 times)

Offline kidmock

  • Newbie
  • *
  • Posts: 6
Mail Filter Hack
« 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.


Offline flosoft

  • Sr. Member
  • ****
  • Posts: 349
    • http://flosoft.biz
Re: Mail Filter Hack
« Reply #1 on: July 07, 2006, 07:45:16 AM »
Sounds nice :)

Offline simoesp

  • Jr. Member
  • **
  • Posts: 46
Re: Mail Filter Hack
« Reply #2 on: July 07, 2006, 09:58:39 AM »
veryyyyyyy nive ;D
--------------------------------------------------------
 **                       S.I.M.O.E.S.P.                       **
--------------------------------------------------------

oslad

  • Guest
Re: Mail Filter Hack
« Reply #3 on: July 07, 2006, 11:26:32 AM »
Good!

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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Mail Filter Hack
« Reply #4 on: August 04, 2006, 04:57:06 AM »
I like it I hope to see a sample of it soon! ;)

Offline jvels

  • Newbie
  • *
  • Posts: 1
Re: Mail Filter Hack
« Reply #5 on: August 10, 2006, 04:39:14 AM »
any news about the mail filter?

Offline mike413

  • Jr. Member
  • **
  • Posts: 12
Re: Mail Filter Hack
« Reply #6 on: August 17, 2006, 02:52:31 AM »
Do you know if that can work with spamassassin? vpopmail? qmail? or qmail-scanner?


Regards.

Mike.

Offline mike413

  • Jr. Member
  • **
  • Posts: 12
Re: Mail Filter Hack
« Reply #7 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.

Offline SteveE

  • Jr. Member
  • **
  • Posts: 13
Re: Mail Filter Hack
« Reply #8 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 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.