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

Re: Sieve script to filter today's MS annoyances



Kirk Strauser said:
> At 2003-09-19T16:41:51Z, Arnt Karlsen <arnt@c2i.net> writes:
>
>> ..hmmm, cool.  And in .procmailrc'ese it is?
>
> No.  In Sieve-ese it is.  See RFC 3028 for details.

ftp://ftp.rfc-editor.org/in-notes/rfc3028.txt

This RFC doesn't say I have to use Sieve, just that they've created it so
more people (hopefully) can easily filter email. Maybe someday procmail
will come with a Sieve ruleset option.

I thought your rules looked pretty lispish. Reading that RFC I see that it
is CommonLisp. Now you've gone and reminded me that I've not played with
Guile or Scheme for a while.

Quote from Martin Pool <mbp@samba.org>, September 2001
http://www.opensource.apple.com/darwinsource/7.0b1/rsync/rsync/rsync3.txt
 - Sadly probably not enough people know Scheme.

http://www.gnu.org/software/mailutils/mailutils.html#sieve
If GNU sieve or sieve.scm work with that ruleset (or you know of another
stand alone sieve parser) and return success if it handled the mail, and
failure otherwise:

# Rule expecting sieve to put the mail in a mailbox (like for IMAP)
:0 Wc
| sieve
:Wa
{
# Sieve handled it, sticking it in the right mailboxes
# so we don't need to do anything
}

This is just a general off-the-cuff guess. Lots of details to work out and
options to tweak, like sieve knowing what rule file to use.

-- 
Jacob
Trying out SquirrelMail



Reply to: