1 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
5 # "VERBOSE=on" is only used for debugging.
10 DEFAULT=$MAILDIR/Inbox/
11 LOGFILE=$HOME/.procmail_log
19 # Add filter for "your message to foo awaits moderator approval"
20 # filter out owner mails
24 HIGHSPAM=spam/HIGHSPAM/
27 POSTMASTER=spam/POSTMASTER/
29 # A list (one per line) of people I KNOW are spammers :-)
30 # can match any part of name so you can use fred, fred@aol.com or aol.com to
31 # match a user, mail address or domain.
32 # Note that this file is case-insensitive.
33 SPAMMERS=$HOME/.procmail/spammers
35 # name of the file containing a list of people we
36 # always want to get mail from, one per line. If
37 # any substring of the From: or Sender: line matches
38 # a line of this file, it will go through, so this
39 # can be used to denote entire sites that we always
40 # wish to get mail from as well as individuals.
41 # E.g. "user", "user@aol.com" or "aol.com".
42 # Note that this file is case-insensitive.
43 # Putting all of the people or lists you get lots
44 # of mail from here will not only insure you get
45 # it, but will speed up procmail.
46 FRIENDS=$HOME/.procmail/friends
48 # ======================================
49 # Preventing duplicates using 16Kb cache
50 # They get shoved in duplicates folder
52 #| formail -D 16384 msgid.cache.new
57 * ^Subject:.*Rnm-devel moderator request
61 * ^Subject:.*Cron.*debbugs@master
65 # Handle delay messages
67 * !Message-Id: .*delay[0-9]+@
68 * ^TO \/don\+delay\+[^@]+
72 * !Message-Id: .*delay[0-9]+@
73 * ^TO \/don\+delay\+[^@]+
74 |/home/don/bin/delay_mail --mailto don@donarmstrong.com --enqueue --email --delay $MATCH
76 # Convert old-style PGP messages to MIME
78 * !^Content-Type: multipart/
79 * !^Content-Type: application/pgp
82 * ^-----BEGIN PGP MESSAGE-----
83 * ^-----END PGP MESSAGE-----
85 -i "Content-Type: application/pgp; format=text; x-action=encrypt"
88 * ^-----BEGIN PGP SIGNED MESSAGE-----
89 * ^-----BEGIN PGP SIGNATURE-----
90 * ^-----END PGP SIGNATURE-----
92 -i "Content-Type: application/pgp; format=text; x-action=sign"
96 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
99 # Mails with a score of 15 or higher are almost certainly spam
101 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
105 # Mails that are clearly spam, but we don't want to toss immediately
107 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
110 # All mail tagged as spam (eg. with a score higher than the set threshold)
111 # is moved to "probably-spam".
113 * ^X-Spam-Status: Yes
117 # I get joe-jobbed a lot; if a message is from a mailer, but not from
118 # one of mine, discard it.
120 * (^(((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 ][^<)]*(\(.*\).*)?)?$([^>]|$))
121 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect|promtheuslabor.com)
122 * !^From:.+(schedulesdirect|paypal.com)
123 * !^To:.+ (don\+.+\@donarmstrong\.com)
128 # stuff for postmaster at my machines
133 # mail from people I don't want to see, because they annoy me
135 * ^From:.*rgm@gnu.org
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 /'
153 # Debian role accounts
156 * ^Delivered-To: (owner@bugs.debian.org)
160 * ^Delivered-To: (listmaster@lists.debian.org)
166 * ^TO (oftc@spi-inc.org)
171 * ^Subject:\ (\[comment\])?\[ALRM\ \#
175 * ^From:\ nagios@nagios-global.lab.propel.com
180 * ^From:\ noreply@dragongoserver.net
188 * ^From:.*announcements@student.ucr.edu
189 lists/ucr-announcements
192 * ^List-Id: <stannounce2.lists.ucr.edu>
193 lists/ucr-announcements
196 * X-Mailing-List: <\/[^@]+
197 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
200 * ^Delivered-To: mailing list \/[^@]+
201 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
204 * ^Sender: owner-\/[^@]+
205 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
208 * ^Sender: \/[^@]+-bounces?
209 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/[\/]/_/g'`/
212 * ^X-BeenThere: \/[^@]+
213 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
216 # Dumb apache mailing lists
218 * ^List-Post: <mailto:\/[^@]+
219 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
222 # Debian's bug system uses X-Loop
224 * ^X-PTS-Package: \/.+
225 bugs/`echo $MATCH |sed -e 's/[\/]/_/g'`/
228 * ^X-Debian-PR-Source: \/.+
229 bugs/`echo $MATCH |sed -e 's/[\/]/_/g'`/
232 * ^X-Debian-PR-Package: \/.+
233 bugs/`echo $MATCH |sed -e 's/[\/]/_/g'`/
236 * ^X-Loop: owner@bugs.debian.org
237 bugs/control_messages/
241 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
245 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
247 # damn kernel back-to-frontness
249 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
254 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
259 * ^Sender:[ ]emacs-pretesters@gnu.org
260 lists/emacs-pretesters/
263 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
267 * ^Sender:.*scd-bounce@blars.org
270 # broken lists using win32 software and NO LIST HEADER. Dumb.
272 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
275 # morons on emacs-devel keep Cc:'ing me; discard the message if it
276 # lists emacs-devel in To or Cc
278 #* ^(To|Cc):.*emacs-devel@gnu.org
279 #* !^Sender:.*emacs-devel
282 # discard all yahoogroups mail
284 * ^(To):.*yahoogroups.com
288 #####################################
289 # Last rule: Put mail into mailbox #
290 #####################################