1##############################################
2# Submitted by Tony Maro
3# http://www.maro.net/tony
4# Use and abuse this script as you will
5# I'm not responsible for what it does...
6#
7# Save this script in your home directory.
8# Install this script with the following command,
9# replacing "thisfile" and "yourname" with the appropriate
10# information:
11#
12# installsieve -i thisfile -m PLAIN -u yourname localhost
13#
14#
15require "fileinto";
16require "reject";
17#
18# Circle MUD mailing list list
19# All mail from the list has "[CIRCLE]" in the subject
20# Place all these in the "Circle List" folder
21# I could filter on the mail list senders e-mail as it's always
22# the same, but this way I even catch personal replies that come
23# directly from a user to me
24if header :contains "Subject" "[CIRCLE]" {
25	fileinto "INBOX.Circle List";
26}
27#
28# "shockwave" e-mail virus - just reject it
29#
30if header :contains "Subject" "A great Shockwave flash movie" {
31	reject "Possible virus?  Check your system!";
32}
33#
34# Get a lot of junk from dial-up uu.net accounts
35# Make sure you create a Junk folder under your INBOX
36# I like this one because it catches them even if they
37# relay their crap through some international open
38# mail relay
39#
40if header :contains "Received" ".da.uu.net" {
41	fileinto "INBOX.Junk";
42}
43#
44# If the mail is listed as TO someone at bigfoot.com
45# Then just reject it because it's spam (my experience anyway)
46#
47if header :contains "To" "@bigfoot.com" {
48	reject "Yeah, right.  Bugoff, hosier!";
49}
50#
51# If the mail is not directed to me put in the junk folder
52# be sure to replace yourname@youraddress.com with the
53# appropriate information
54# Took me a while to figure out how to do NOT statements... :-}
55#
56if anyof ( not address :all :contains ["To", "Cc", "Bcc"] "yourname@youraddress.com" ) {
57	fileinto "INBOX.Junk";
58}
59#
60# Everything that makes it to here ends up in the INBOX
61########################################################
62
63