[dev] Sieve filtering module

Julian Jares jjares@techie.com
Sat, 18 Aug 2001 12:48:52 -0300


Hi:

yep, my mistake... just replace the line for
        if (isset($this->rules))
I think I have some of those scattered around :-)

Little short explanation of how the module works:
you have only two files in the /sieve/ directory,
index.php (sort of a wrapper for rules.php)
rules.php, does all the work depending on the $action passed
in libs you have:
libs/sql.php (interface to the database)
libs/sieve-sql.php (builds what sieve needs from the sql)
libs/sieve-php.lib (Dan Ellis interface to sieve)

What I do, is on every disruptive change (add rule, edit rule,
delete rule, undelete rule) I build the actual rules and pass
them on to sieve.

I have two projects I'm working on:
1. something to read the rules currently installed, and upload
them to the database
2. tell my users to an e-mail address, and have that read by a
deamon, and add it to common rules for all users (note the all user
in mysql, and the ALL_USERS constants everywhere)
(2 could be replaced by blacklist send to a junk folder, and
monthly maintenance deleting old files from that folder)

Bye
Julian

-----Original Message-----
From: Jan Schneider [mailto:janmailing@gmx.de]
Sent: Saturday, August 18, 2001 10:34 AM
To: dev@lists.horde.org
Subject: Re: [dev] Sieve filtering module


Hi,

unfortunately it doesn't work here at all. I always get:
Warning: Undefined property: rules
in /usr/local/httpd/htdocs/horde/sieve/lib/sieve-sql.php on line 19
No matter what action I try even on the start page.

But this is actually something I was waiting for! Great idea!
How do you interact with sieve? And do you read already installed sieve
rules?

Jan.

Zitat von jjares@techie.com:

> Hi:
>
> I've built a small horde module to manage sieve rules. I use a mysql
backend,
>
> and Dan Ellis sieve-php.lib, to build a somehow friendly environment to
> manage
> sieve rules. It is a version 0.0.1 and has some (ok, actually a lot) room
for
>
> improvement, but those of you who use cyrus, please check it out and tell
me
>
> what you think :-)
>
> you can download it from http://www.julianjares.com.ar/hordedev/sieve
>
> Bye,
> Julian
>
> --
> Horde Developers mailing list: http://horde.org/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>
>


::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::

--
Horde Developers mailing list: http://horde.org/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org