Changes between Version 2 and Version 3 of SieveExamples


Ignore:
Timestamp:
08/02/06 18:50:39 (20 years ago)
Author:
dkg@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SieveExamples

    v2 v3  
    22
    33= Example Sieve Scripts for CAL =
     4[wiki:Email CAL E-mail] filtering is handled through Sieve.  You can find out more about how to set up a new sieve script [wiki:Email here].  This page documents some example sieve scripts that people at CAL find useful.
     5
     6== CAL default ==
     7
     8The default sieve script can be found [source:trunk/packages/cal-meta/src/examples/sieve/cal-default.script here].  It filters all detected viruses and spam into the subfolder called `spam` in your inbox.  If you have no such folder, all mail will be delivered to you inbox.
    49
    510== `~/.forward` emulation ==
     
    1015}}}
    1116
     17== forward only non-spam e-mails ==
     18This is similar to the default CAL script, but instead of delivering non-spam e-mail, it redirects it to an external address:
     19{{{
     20require "fileinto";
     21
     22if header :is [ "X-DSPAM-Result", "X-DSPAM-Reclassified" ] [ "Spam", "Virus" ] {
     23        fileinto "INBOX.spam";
     24        stop;
     25}
     26redirect "user@domain.com";
     27}}}
     28Note that if you use this, you should probably check your CAL spam box from time to time to purge the real spam and retrain your filter on anything that was missed.
     29
    1230== other examples ==
    1331You can find some [http://www.cmu.edu/computing/documentation/sieve/sieve.html example sieve scripts] [http://wiki.fastmail.fm/index.php/SieveRecipes online], if you want to experiment more.