Re: [Evolution] Sieve support



On Sat, 2003-07-26 at 18:41, Philip Van Hoof wrote:


I want to know if somebody is taking a look at support for Sieve
serverside IMAP filtering scripts in Evolution and/or if it's perhaps
already supported at this moment in a development branch.

Trying not to put myself in the wrong direction I decided to ask about
this:

Am I correct if I say that /camel/providers/pop3 is where the POP3 stuff
is located? While I was reading the RFC of the sieve-protocol
(http://www.ietf.org/internet-drafts/draft-martin-managesieve-04.txt) I
noticed that it looks a lot like POP3 (also a lot like ACAP and IMAP but
I don't know very much about those protocols). 

So what I did so far is

cd camel/providers
cp -a pop3 sieve
[Patch File: Makefile.am]
- SUBDIRS = pop3 sendmail smtp imap $(NNTP_DIR) local sieve
+ SUBDIRS = pop3 sendmail smtp imap $(NNTP_DIR) local sieve
cd sieve
for a in *; do nfile=`echo $a | sed s/pop3/sieve/g` ; mv $a $nfile; done
for a in *; do cat $a | sed s/pop3/sieve/g > tfile; mv tfile $a; done
for a in *; do cat $a | sed s/POP3/SIEVE/g > tfile; mv tfile $a; done
for a in *; do cat $a | sed s/Pop3/Sieve/g > tfile; mv tfile $a; done
cd ../../../
[Patch File: configure.in]
camel/providers/pop3/Makefile
+ camel/providers/sieve/Makefile
camel/providers/sendmail/Makefile
./autogen.sh --with-db3=/opt/evo-db3/ --with-openldap=/opt/evo-openldap/
--prefix=/opt/evo/
make
make install

everything compiles -and installs

The question is, am I missing something? Shouldn't I start with copying
the pop3 provider for some reason? (Is there a better library in the
makes perhaps?)

My plan/idea is to first create a library (like the protocols pop3 and
imap have) for the sieve protocol, then implement a very basic and
simple GUI (for example to get a list of all scripts, to delete a script
to add a script) and then fully integrate stuff with the filtering GUI's
of Evolution. Because I have a daytime job I suspect that by the time I
finish everything, the Exchange-filter support will have been added by
Ximian (meaning that the GUI's are the way the smart guys of Ximian want
it). I am hoping to then use that sieve-library of mine with some simple
GUI-modifications to the Exchange-filter support.

Does this sound like a good plan/idea? 

Note that I do have a CVS-account on gnome but I will not be committing
anything to CVS before sending a (huge) patch-file to the mailinglist
and a strict "okay"-answer from the main developers of Evolution. 

Also note that if I will be the only person working on this
implementation, it will not be finished anytime soon (plus, I am also
working on a few other opensource projects as hobby). Again, are there
other people here who share the same idea and perhaps want to join the
effort of getting sieve supported in Evolution? (After looking at the
sources in filter/* I don't think that it's a impossible nor difficult
job. The sieve-protocol looks pretty easy and is very well documented).


ps. Evolution is a huge animal to get compiled. Are there tips/hints for
getting modules compiled and-or installed faster? I know that I don't
have to do `make clean` everytime, still it takes pretty long for the
build-scripts to complete everything. Even on my SMP-machine. If not, I
guess distcc will be an option (but I fear that it's mainly linking
thats taking long, and afaik does distcc not distribute link-jobs)

-- 
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org
work: Philip dot VanHoof at cronos dot be
http://www.freax.be, http://www.freax.eu.org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]