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
78 * 1^0 ^Subject: Cottage Kids Children's Center Check-
79 * 1^0 ^Subject: Bright Path to Learning Child Development Center
83 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
86 # Mails with a score of 15 or higher are almost certainly spam
88 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
92 # Mails that are clearly spam, but we don't want to toss immediately
94 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
97 # All mail tagged as spam (eg. with a score higher than the set threshold)
98 # is moved to "probably-spam".
100 * ^X-Spam-Status: Yes
105 # discard bounces from dumb mailing lists on prometheuslabor
107 * ^From: MAILER-DAEMON@
108 * ^To: root@mail.prometheuslabor.com
109 * ^Subject:.*Undelivered
112 # Discard bounces from lists.acbnrates.com
114 * ^To: mailman-bounces@lists.acbnrates.com
115 * ^Subject:.*Undelivered
120 * ^From: usc.aqmd@usc.edu
121 * ^Subject:.*USC AQMD Survey
124 # discard no spam digest
126 * ^From: .*spam-control@illinois.edu
127 * ^Subject:.*End User Digest: 0 New Messages
130 # stuff for postmaster at my machines
135 # mail from people I don't want to see, because they annoy me
137 * ^From:.*rgm@gnu.org
140 # Send messages from sacramento city unified to Laurel
142 * ^From:.*DoNotReply@scusd.edu
143 | /usr/lib/sendmail lkdwillow@gmail.com
145 # Work around procmail bug: any output on stderr will cause the "F" in "From"
146 # to be dropped. This will re-add it.
151 LOG="*** Dropped F off From_ header! Fixing up. "
154 | sed -e 's/^rom /From /'
157 # Debian role accounts
159 * ^Delivered-To: (owner@bugs.debian.org)
163 * ^Delivered-To: .*listmaster@lists.debian.org
167 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
172 * ^Return-Path:.*buildd@.*.donarmstrong.com
173 buildd.donarmstrong.com/
177 * ^TO (oftc@spi-inc.org)
182 * ^Subject:\ (\[comment\])?\[ALRM\ \#
186 * ^From:\ nagios@nagios-global.lab.propel.com
191 * ^From:\ noreply@dragongoserver.net
194 # discard all yahoogroups mail
195 # except for those to rsult (riverside ultimate)
197 * !^To:.*rsult@yahoogroups.com
198 * ^To:.*@yahoogroups.com
207 * ^From:.*announcements@student.ucr.edu
208 lists/ucr-announcements
211 * ^List-Id: <stannounce2.lists.ucr.edu>
212 lists/ucr-announcements
215 * X-Mailing-List: <\/[^@]+
216 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
219 * ^Delivered-To: mailing list \/[^@]+
220 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
223 * ^Sender: owner-\/[^@]+
224 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
227 * ^Sender: +<?\/[^@]+-bounces?
228 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
231 * ^X-BeenThere: \/[^@]+
232 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
235 # Dumb apache mailing lists
237 * ^List-Post: <mailto:\/[^@]+
238 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
241 # Debian's bug system uses X-Loop
243 * ^X-PTS-Package: \/.+
247 * ^X-Debian-PR-Source: \/.+
251 * ^X-Debian-PR-Package: \/.+
255 * ^X-Loop: owner@bugs.debian.org
260 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
264 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
266 # damn kernel back-to-frontness
268 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
273 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
278 * ^Sender:[ ]emacs-pretesters@gnu.org
279 lists/emacs-pretesters/
282 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
286 * ^Sender:.*scd-bounce@blars.org
290 * ^Sender:.*journal@usgo.org
293 # broken lists using win32 software and NO LIST HEADER. Dumb.
295 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
298 #####################################
299 # Last rule: Put mail into mailbox #
300 #####################################