Changes between Version 2 and Version 3 of SieveExamples
- Timestamp:
- 08/02/06 18:50:39 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SieveExamples
v2 v3 2 2 3 3 = 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 8 The 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. 4 9 5 10 == `~/.forward` emulation == … … 10 15 }}} 11 16 17 == forward only non-spam e-mails == 18 This is similar to the default CAL script, but instead of delivering non-spam e-mail, it redirects it to an external address: 19 {{{ 20 require "fileinto"; 21 22 if header :is [ "X-DSPAM-Result", "X-DSPAM-Reclassified" ] [ "Spam", "Virus" ] { 23 fileinto "INBOX.spam"; 24 stop; 25 } 26 redirect "user@domain.com"; 27 }}} 28 Note 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 12 30 == other examples == 13 31 You 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.
