1 # -*- mode: tinyprocmail -*-
2 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
6 # "VERBOSE=on" is only used for debugging.
11 DEFAULT=$MAILDIR/Inbox/
12 LOGFILE=$HOME/.procmail_log
20 # Add filter for "your message to foo awaits moderator approval"
21 # filter out owner mails
25 HIGHSPAM=spam/HIGHSPAM/
28 POSTMASTER=spam/POSTMASTER/
30 # A list (one per line) of people I KNOW are spammers :-)
31 # can match any part of name so you can use fred, fred@aol.com or aol.com to
32 # match a user, mail address or domain.
33 # Note that this file is case-insensitive.
34 SPAMMERS=$HOME/.procmail/spammers
36 # name of the file containing a list of people we
37 # always want to get mail from, one per line. If
38 # any substring of the From: or Sender: line matches
39 # a line of this file, it will go through, so this
40 # can be used to denote entire sites that we always
41 # wish to get mail from as well as individuals.
42 # E.g. "user", "user@aol.com" or "aol.com".
43 # Note that this file is case-insensitive.
44 # Putting all of the people or lists you get lots
45 # of mail from here will not only insure you get
46 # it, but will speed up procmail.
47 FRIENDS=$HOME/.procmail/friends
49 # ======================================
50 # Preventing duplicates using 16Kb cache
51 # They get shoved in duplicates folder
53 #| formail -D 16384 msgid.cache.new
58 * ^From:.*mailer-daemon@beta.sndservers.com
59 * ^Sender:.*Carpenters (Apprenticeship|Training)
63 * ^Subject:.*Rnm-devel moderator request
67 * ^Subject:.*Cron.*debbugs@master
72 * 1^0 ^Subject: Your Crosstrek has started charging
73 * 1^0 ^Subject: Charging for your Crosstrek is complete
76 # cottage kids e-mails
78 * 1^0 ^Subject: Cottage Kids Children's Center Check-
82 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
85 # Mails with a score of 15 or higher are almost certainly spam
87 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
91 # Mails that are clearly spam, but we don't want to toss immediately
93 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
96 # All mail tagged as spam (eg. with a score higher than the set threshold)
97 # is moved to "probably-spam".
104 # discard bounces from dumb mailing lists on prometheuslabor
106 * ^From: MAILER-DAEMON@
107 * ^To: root@mail.prometheuslabor.com
108 * ^Subject:.*Undelivered
113 * ^From: usc.aqmd@usc.edu
114 * ^Subject:.*USC AQMD Survey
117 # discard no spam digest
119 * ^From: .*spam-control@illinois.edu
120 * ^Subject:.*End User Digest: 0 New Messages
123 # stuff for postmaster at my machines
128 # mail from people I don't want to see, because they annoy me
130 * ^From:.*rgm@gnu.org
133 # Send messages from sacramento city unified to Laurel
135 * ^From:.*DoNotReply@scusd.edu
136 | /usr/lib/sendmail lkdwillow@gmail.com
138 # Work around procmail bug: any output on stderr will cause the "F" in "From"
139 # to be dropped. This will re-add it.
144 LOG="*** Dropped F off From_ header! Fixing up. "
147 | sed -e 's/^rom /From /'
150 # Debian role accounts
152 * ^Delivered-To: (owner@bugs.debian.org)
156 * ^Delivered-To: .*listmaster@lists.debian.org
160 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
165 * ^Return-Path:.*buildd@.*.donarmstrong.com
166 buildd.donarmstrong.com/
170 * ^TO (oftc@spi-inc.org)
175 * ^Subject:\ (\[comment\])?\[ALRM\ \#
179 * ^From:\ nagios@nagios-global.lab.propel.com
184 * ^From:\ noreply@dragongoserver.net
187 # discard all yahoogroups mail
188 # except for those to rsult (riverside ultimate)
190 * !^To:.*rsult@yahoogroups.com
191 * ^To:.*@yahoogroups.com
200 * ^From:.*announcements@student.ucr.edu
201 lists/ucr-announcements
204 * ^List-Id: <stannounce2.lists.ucr.edu>
205 lists/ucr-announcements
208 * X-Mailing-List: <\/[^@]+
209 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
212 * ^Delivered-To: mailing list \/[^@]+
213 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
216 * ^Sender: owner-\/[^@]+
217 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
220 * ^Sender: +<?\/[^@]+-bounces?
221 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
224 * ^X-BeenThere: \/[^@]+
225 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
228 # Dumb apache mailing lists
230 * ^List-Post: <mailto:\/[^@]+
231 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
234 # Debian's bug system uses X-Loop
236 * ^X-PTS-Package: \/.+
240 * ^X-Debian-PR-Source: \/.+
244 * ^X-Debian-PR-Package: \/.+
248 * ^X-Loop: owner@bugs.debian.org
253 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
257 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
259 # damn kernel back-to-frontness
261 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
266 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
271 * ^Sender:[ ]emacs-pretesters@gnu.org
272 lists/emacs-pretesters/
275 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
279 * ^Sender:.*scd-bounce@blars.org
282 # broken lists using win32 software and NO LIST HEADER. Dumb.
284 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
287 #####################################
288 # Last rule: Put mail into mailbox #
289 #####################################