bug-mailutils
[Top][All Lists]
Advanced

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

Re: Sieve (was: Re: Mailutils new competitor)


From: Sean 'Shaleh' Perry
Subject: Re: Sieve (was: Re: Mailutils new competitor)
Date: Mon, 19 Feb 2001 10:15:09 -0800 (PST)

> 
> Yes, sieve seems to be the standard language(at least the one documentend
> by the ietf(imc)) to make filtering etc ...  Instead of reinventing yet
> another awkward syntax to do the same, lets standardize on std.
> 

indeed, I thought I mentioned this Long Ago (tm).

> 
> beurk!
> In anycase, we probably need a libsieve.a part of mailutils, so it will
> have to be in C.  Not sure how to do it though.
> 

a) sieve is a line oriented parser that keeps its state.  You have a:

     for line in mail:
         sieve_add(line)

b) sieve is sent the entire mail for parsing


as I recall sieve goes something like:

  if message_subject == $known_subject
     save_to($known_subject_folder)

  basically, it's syntax knows about mail and defines actions to be performed. 
The sieve interpreter should take hooks so that when a 'save_to' operation
happens, it calls mailutils' save message to folder function.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]