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".
103 # I get joe-jobbed a lot; if a message is from a mailer, but not from
104 # one of mine, discard it.
106 * (^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mailer|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|(s(erver)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>\t ][^<)]*(\(.*\).*)?)?$([^>]|$)
107 * ^Subject:.*(Mail delivery failed|Returned mail|Undelivered Mail)
108 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|prometheuslabor.com)
109 * !^From:.+(schedulesdirect|paypal.com)
110 * !^To:.+ (don\+.+\@(donarmstrong\.com|debian\.org|rzlab\.ucr\.edu))
117 # discard bounces from dumb mailing lists on prometheuslabor
119 * ^From: MAILER-DAEMON@
120 * ^To: root@mail.prometheuslabor.com
121 * ^Subject:.*Undelivered
126 * ^From: usc.aqmd@usc.edu
127 * ^Subject:.*USC AQMD Survey
130 # discard no spam digest
132 * ^From: .*spam-control@illinois.edu
133 * ^Subject:.*End User Digest: 0 New Messages
136 # stuff for postmaster at my machines
141 # mail from people I don't want to see, because they annoy me
143 * ^From:.*rgm@gnu.org
146 # Work around procmail bug: any output on stderr will cause the "F" in "From"
147 # to be dropped. This will re-add it.
152 LOG="*** Dropped F off From_ header! Fixing up. "
155 | sed -e 's/^rom /From /'
158 # Debian role accounts
160 * ^Delivered-To: (owner@bugs.debian.org)
164 * ^Delivered-To: .*listmaster@lists.debian.org
168 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
173 * ^Return-Path:.*buildd@.*.donarmstrong.com
174 buildd.donarmstrong.com/
178 * ^TO (oftc@spi-inc.org)
183 * ^Subject:\ (\[comment\])?\[ALRM\ \#
187 * ^From:\ nagios@nagios-global.lab.propel.com
192 * ^From:\ noreply@dragongoserver.net
195 # discard all yahoogroups mail
196 # except for those to rsult (riverside ultimate)
198 * !^To:.*rsult@yahoogroups.com
199 * ^To:.*@yahoogroups.com
208 * ^From:.*announcements@student.ucr.edu
209 lists/ucr-announcements
212 * ^List-Id: <stannounce2.lists.ucr.edu>
213 lists/ucr-announcements
216 * X-Mailing-List: <\/[^@]+
217 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
220 * ^Delivered-To: mailing list \/[^@]+
221 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
224 * ^Sender: owner-\/[^@]+
225 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
228 * ^Sender: +<?\/[^@]+-bounces?
229 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
232 * ^X-BeenThere: \/[^@]+
233 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
236 # Dumb apache mailing lists
238 * ^List-Post: <mailto:\/[^@]+
239 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
242 # Debian's bug system uses X-Loop
244 * ^X-PTS-Package: \/.+
248 * ^X-Debian-PR-Source: \/.+
252 * ^X-Debian-PR-Package: \/.+
256 * ^X-Loop: owner@bugs.debian.org
261 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
265 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
267 # damn kernel back-to-frontness
269 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
274 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
279 * ^Sender:[ ]emacs-pretesters@gnu.org
280 lists/emacs-pretesters/
283 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
287 * ^Sender:.*scd-bounce@blars.org
290 # broken lists using win32 software and NO LIST HEADER. Dumb.
292 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
295 #####################################
296 # Last rule: Put mail into mailbox #
297 #####################################