]> git.donarmstrong.com Git - remote_mail.git/blob - .procmailrc
remove joejob filter
[remote_mail.git] / .procmailrc
1 # -*- mode: tinyprocmail -*-
2 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
3
4 SHELL=/bin/bash
5
6 # "VERBOSE=on" is only used for debugging.
7 VERBOSE=off
8
9 SENDMAIL=sendmail
10 MAILDIR=$HOME/Maildir
11 DEFAULT=$MAILDIR/Inbox/
12 LOGFILE=$HOME/.procmail_log
13 # LOGABSTRACT = "all"
14
15 # TODO
16
17 #:0 c:
18 #$HOME/Mail/temp/
19
20 # Add filter for "your message to foo awaits moderator approval"
21 # filter out owner mails
22
23
24 # where to send spam
25 HIGHSPAM=spam/HIGHSPAM/
26 SPAM=spam/SPAM/
27 JOEJOB=spam/JOEJOB/
28 POSTMASTER=spam/POSTMASTER/
29
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
35
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
48
49 # ======================================
50 # Preventing duplicates using 16Kb cache
51 # They get shoved in duplicates folder
52 #:0 Whc: .msgid.lock
53 #| formail -D 16384 msgid.cache.new
54 #:0 a:
55 #/dev/null
56
57 :0 HB
58 * ^From:.*mailer-daemon@beta.sndservers.com
59 * ^Sender:.*Carpenters (Apprenticeship|Training)
60 /dev/null
61
62 :0 H
63 * ^Subject:.*Rnm-devel moderator request
64 /dev/null
65
66 :0 H
67 * ^Subject:.*Cron.*debbugs@master
68 /dev/null
69
70 # subaru
71 :0:
72 * 1^0 ^Subject: Your Crosstrek has started charging
73 * 1^0 ^Subject: Charging for your Crosstrek is complete
74 subaru/
75
76 # cottage kids e-mails
77 :0:
78 * 1^0 ^Subject: Cottage Kids Children's Center Check-
79 cottage-kids/
80
81 :0:
82 * ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
83 {
84
85 # Mails with a score of 15 or higher are almost certainly spam
86 :0:
87 * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
88 #definetly_spam
89 /dev/null
90
91 # Mails that are clearly spam, but we don't want to toss immediately
92 :0:
93 * ^X-Spam-Level: \*\*\*\*\*\*\*\*
94 $HIGHSPAM
95
96 # All mail tagged as spam (eg. with a score higher than the set threshold)
97 # is moved to "probably-spam".
98 :0:
99 * ^X-Spam-Status: Yes
100 $SPAM
101
102 }
103
104 # discard bounces from dumb mailing lists on prometheuslabor
105 :0:
106 * ^From: MAILER-DAEMON@
107 * ^To: root@mail.prometheuslabor.com
108 * ^Subject:.*Undelivered
109 /dev/null
110
111 # discard AQMD mail
112 :0:
113 * ^From: usc.aqmd@usc.edu
114 * ^Subject:.*USC AQMD Survey
115 /dev/null
116
117 # discard no spam digest
118 :0:
119 * ^From: .*spam-control@illinois.edu
120 * ^Subject:.*End User Digest: 0 New Messages
121 /dev/null
122
123 # stuff for postmaster at my machines
124 :0:
125 * ^To: postmaster@
126 $POSTMASTER
127
128 # mail from people I don't want to see, because they annoy me
129 :0:
130 * ^From:.*rgm@gnu.org
131 $HOME/Mail/idiots
132
133 # Send messages from sacramento city unified to Laurel
134 :0:cr
135 * ^From:.*DoNotReply@scusd.edu
136 | /usr/lib/sendmail lkdwillow@gmail.com
137
138 # Work around procmail bug: any output on stderr will cause the "F" in "From"
139 # to be dropped.  This will re-add it.
140 :0 H
141 * ! ^From[ ]
142 * ^rom[ ]
143 {
144   LOG="*** Dropped F off From_ header! Fixing up. "
145
146   :0 fhw
147   | sed -e 's/^rom /From /'
148 }
149
150 # Debian role accounts
151 :0:
152 * ^Delivered-To: (owner@bugs.debian.org)
153 bugs.debian.org/
154
155 :0:
156 * ^Delivered-To: .*listmaster@lists.debian.org
157 lists.debian.org/
158
159 :0:
160 * ^Delivered-To: .*lists-listmaster@bendel.debian.org
161 lists.debian.org/
162
163 # Buildds
164 :0:
165 * ^Return-Path:.*buildd@.*.donarmstrong.com
166 buildd.donarmstrong.com/
167
168 # OFTC stuff
169 :0:
170 * ^TO (oftc@spi-inc.org)
171 oftc/
172
173 # Chili ALRM
174 :0:
175 * ^Subject:\ (\[comment\])?\[ALRM\ \#
176 chili_alarm/
177
178 :0:
179 * ^From:\ nagios@nagios-global.lab.propel.com
180 chili_alarm/
181
182 # Mail from dragongo
183 :0:
184 * ^From:\ noreply@dragongoserver.net
185 lists/dragongo/
186
187 # discard all yahoogroups mail
188 # except for those to rsult (riverside ultimate)
189 :0:
190 * !^To:.*rsult@yahoogroups.com
191 * ^To:.*@yahoogroups.com
192 /dev/null
193
194
195 ###################
196 #  Mailing lists  #
197 ###################
198
199 :0:
200 * ^From:.*announcements@student.ucr.edu
201 lists/ucr-announcements
202
203 :0:
204 * ^List-Id: <stannounce2.lists.ucr.edu>
205 lists/ucr-announcements
206
207 :0:
208 * X-Mailing-List: <\/[^@]+
209 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
210
211 :0:
212 * ^Delivered-To: mailing list \/[^@]+
213 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
214
215 :0:
216 * ^Sender: owner-\/[^@]+
217 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
218
219 :0:
220 * ^Sender: +<?\/[^@]+-bounces?
221 lists/`echo $MATCH | sed -e 's/\-bounces*//g; s/\"//g; s/.*<//g; s/[\/]/_/g; y/A-Z/a-z/'`/
222
223 :0:   
224 * ^X-BeenThere: \/[^@]+
225 lists/`echo $MATCH | sed -e 's/<//g; s/[\/]/_/g'`/
226
227
228 # Dumb apache mailing lists
229 :0:
230 * ^List-Post: <mailto:\/[^@]+
231 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
232
233
234 # Debian's bug system uses X-Loop
235 :0:
236 * ^X-PTS-Package: \/.+
237 bugs/bug_reports/
238
239 :0:
240 * ^X-Debian-PR-Source: \/.+
241 bugs/bug_reports/
242
243 :0:
244 * ^X-Debian-PR-Package: \/.+
245 bugs/bug_reports/
246
247 :0:
248 * ^X-Loop: owner@bugs.debian.org
249 bugs/bug_reports/
250
251 :0:
252 * X-Loop: \/[^@]+
253 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
254
255 :0:
256 * X-ML-Name: \/[^@]+
257 lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/
258
259 # damn kernel back-to-frontness
260 :0:
261 * ^Sender:[      ]linux-kernel-owner@vger.kernel.org
262 lists/linux-kernel/
263
264 # linux-scsi
265 :0:
266 * ^Sender:[      ]linux-scsi-owner@vger.kernel.org
267 lists/linux-scsi/
268
269 # emacs-pretesters
270 :0:
271 * ^Sender:[      ]emacs-pretesters@gnu.org
272 lists/emacs-pretesters/
273
274 :0:
275 * ^Sender:.*GENE-ARRAYS@ITSSRV1.UCSF.EDU
276 lists/gene-arrays/
277
278 :0:
279 * ^Sender:.*scd-bounce@blars.org
280 lists/scd/
281
282 # broken lists using win32 software and NO LIST HEADER. Dumb.
283 :0:
284 * ^Sender: (Bugtraq|Incidents Mailing|VULN-DEV) List
285 lists/bugtraq/
286
287 #####################################
288 # Last rule:  Put mail into mailbox #
289 #####################################
290
291 :0:
292 $DEFAULT
293
294 # End of file