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/
28 # A list (one per line) of people I KNOW are spammers :-)
29 # can match any part of name so you can use fred, fred@aol.com or aol.com to
30 # match a user, mail address or domain.
31 # Note that this file is case-insensitive.
32 SPAMMERS=$HOME/.procmail/spammers
34 # name of the file containing a list of people we
35 # always want to get mail from, one per line. If
36 # any substring of the From: or Sender: line matches
37 # a line of this file, it will go through, so this
38 # can be used to denote entire sites that we always
39 # wish to get mail from as well as individuals.
40 # E.g. "user", "user@aol.com" or "aol.com".
41 # Note that this file is case-insensitive.
42 # Putting all of the people or lists you get lots
43 # of mail from here will not only insure you get
44 # it, but will speed up procmail.
45 FRIENDS=$HOME/.procmail/friends
47 # ======================================
48 # Preventing duplicates using 16Kb cache
49 # They get shoved in duplicates folder
51 #| formail -D 16384 msgid.cache.new
56 * ^Subject:.*Rnm-devel moderator request
60 * ^Subject:.*Cron.*debbugs@master
64 # Handle delay messages
66 * !Message-Id: .*delay[0-9]+@
71 * !Message-Id: .*delay[0-9]+@
72 * ^TO \/don\+delay\+[^@]+
73 |/home/don/bin/delay_mail --mailto don@donarmstrong.com --enqueue --email --delay $MATCH
75 # Convert old-style PGP messages to MIME
77 * !^Content-Type: multipart/
78 * !^Content-Type: application/pgp
81 * ^-----BEGIN PGP MESSAGE-----
82 * ^-----END PGP MESSAGE-----
84 -i "Content-Type: application/pgp; format=text; x-action=encrypt"
87 * ^-----BEGIN PGP SIGNED MESSAGE-----
88 * ^-----BEGIN PGP SIGNATURE-----
89 * ^-----END PGP SIGNATURE-----
91 -i "Content-Type: application/pgp; format=text; x-action=sign"
95 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
98 # Mails with a score of 15 or higher are almost certainly spam
100 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
104 # Mails that are clearly spam, but we don't want to toss immediately
106 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
109 # All mail tagged as spam (eg. with a score higher than the set threshold)
110 # is moved to "probably-spam".
112 * ^X-Spam-Status: Yes
116 # I get joe-jobbed a lot; if a message is from a mailer, but not from
117 # one of mine, discard it.
120 * !^From:.+(ucr|debian|donarmstrong|sndservers|ccin)
123 # Work around procmail bug: any output on stderr will cause the "F" in "From"
124 # to be dropped. This will re-add it.
129 LOG="*** Dropped F off From_ header! Fixing up. "
132 | sed -e 's/^rom /From /'
138 # Debian role accounts
141 * ^Delivered-To: (owner@bugs.debian.org)
145 * ^Delivered-To: (listmaster@lists.debian.org)
151 * ^TO (oftc@spi-inc.org)
156 * ^Subject:\ (\[comment\])?\[ALRM\ \#
160 * ^From:\ nagios@nagios-global.lab.propel.com
165 * ^From:\ noreply@dragongoserver.net
173 * X-Mailing-List: <\/[^@]+
174 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
177 * ^Delivered-To: mailing list \/[^@]+
178 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
181 * ^Sender: owner-\/[^@]+
182 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
185 * ^Sender: \/[^@]+-bounces?
186 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/[\/]/_/g'`/
189 * ^X-BeenThere: \/[^@]+
190 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
193 # Dumb apache mailing lists
195 * ^List-Post: <mailto:\/[^@]+
196 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
199 # Debian's bug system uses X-Loop
202 * ^X-PTS-Package: \/.+
203 bugs/`echo $MATCH |sed -e 's/[\/]/_/g'`/
206 * ^X-Debian-PR-Package: \/.+
207 bugs/`echo $MATCH |sed -e 's/[\/]/_/g'`/
210 * ^X-Loop: owner@bugs.debian.org
211 bugs/control_messages/
215 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
219 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
221 # damn kernel back-to-frontness
223 * ^Sender:[ ]linux-kernel-owner@vger.kernel.org
228 * ^Sender:[ ]linux-scsi-owner@vger.kernel.org
233 * ^Sender:[ ]emacs-pretesters@gnu.org
234 lists/emacs-pretesters/
237 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
241 * ^Sender:.*scd-bounce@blars.org
244 # broken lists using win32 software and NO LIST HEADER. Dumb.
246 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
249 #####################################
250 # Last rule: Put mail into mailbox #
251 #####################################