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
111 # Discard bounces from lists.acbnrates.com
113 * ^To: mailman-bounces@lists.acbnrates.com
114 * ^Subject:.*Undelivered
119 * ^From: usc.aqmd@usc.edu
120 * ^Subject:.*USC AQMD Survey
123 # discard no spam digest
125 * ^From: .*spam-control@illinois.edu
126 * ^Subject:.*End User Digest: 0 New Messages
129 # stuff for postmaster at my machines
134 # mail from people I don't want to see, because they annoy me
136 * ^From:.*rgm@gnu.org
139 # Send messages from sacramento city unified to Laurel
141 * ^From:.*DoNotReply@scusd.edu
142 | /usr/lib/sendmail lkdwillow@gmail.com
144 # Work around procmail bug: any output on stderr will cause the "F" in "From"
145 # to be dropped. This will re-add it.
150 LOG="*** Dropped F off From_ header! Fixing up. "
153 | sed -e 's/^rom /From /'
156 # Debian role accounts
158 * ^Delivered-To: (owner@bugs.debian.org)
162 * ^Delivered-To: .*listmaster@lists.debian.org
166 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
171 * ^Return-Path:.*buildd@.*.donarmstrong.com
172 buildd.donarmstrong.com/
176 * ^TO (oftc@spi-inc.org)
181 * ^Subject:\ (\[comment\])?\[ALRM\ \#
185 * ^From:\ nagios@nagios-global.lab.propel.com
190 * ^From:\ noreply@dragongoserver.net
193 # discard all yahoogroups mail
194 # except for those to rsult (riverside ultimate)
196 * !^To:.*rsult@yahoogroups.com
197 * ^To:.*@yahoogroups.com
206 * ^From:.*announcements@student.ucr.edu
207 lists/ucr-announcements
210 * ^List-Id: <stannounce2.lists.ucr.edu>
211 lists/ucr-announcements
214 * X-Mailing-List: <\/[^@]+
215 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
218 * ^Delivered-To: mailing list \/[^@]+
219 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
222 * ^Sender: owner-\/[^@]+
223 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
226 * ^Sender: +<?\/[^@]+-bounces?
227 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
230 * ^X-BeenThere: \/[^@]+
231 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
234 # Dumb apache mailing lists
236 * ^List-Post: <mailto:\/[^@]+
237 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
240 # Debian's bug system uses X-Loop
242 * ^X-PTS-Package: \/.+
246 * ^X-Debian-PR-Source: \/.+
250 * ^X-Debian-PR-Package: \/.+
254 * ^X-Loop: owner@bugs.debian.org
259 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
263 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
265 # damn kernel back-to-frontness
267 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
272 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
277 * ^Sender:[ ]emacs-pretesters@gnu.org
278 lists/emacs-pretesters/
281 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
285 * ^Sender:.*scd-bounce@blars.org
288 # broken lists using win32 software and NO LIST HEADER. Dumb.
290 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
293 #####################################
294 # Last rule: Put mail into mailbox #
295 #####################################