-
Notifications
You must be signed in to change notification settings - Fork 0
/
.procmailrc
284 lines (212 loc) · 5.4 KB
/
.procmailrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
MAILDIR="$HOME/mail"
LOGFILE="$HOME/.procmaillog"
FORMAIL=/usr/bin/formail
#VERBOSE=on
# corregge possibili header from errati
:0fhw:
| $FORMAIL -I "From " -a "From "
# corregge indicatori di firme errati (maledetto outlook...)
:0 fBw * ^--$
| sed -e 's/^--$/-- /'
# corregge prefissi di risposta errati (sempre sia maledetto outlook...)
:0 fHw * ^Subject:.*R:
| sed -e 's/R:/Re:/g'
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
# NOTE: This is probably NOT needed in recent versions of procmail
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "
:0 fhw
| sed -e '1s/^/F/'
}
#trova i duplicati
:0 Whc: .msgid.lock
| $FORMAIL -D 16384 .msgid.cache
:0 a
$MAILDIR/duplicates
#salva tutti i mail address che passano ;)
:0hc
| /usr/bin/lbdb-fetchaddr
# ----------------------------------------
# MAILING LISTS
# ----------------------------------------
#:0:
#$MAILDIR/lists/bugtraq
:0:
$MAILDIR/lists/arch-ml
:0:
$MAILDIR/lists/arch-ml
:0:
$MAILDIR/lists/pacman-dev
:0:
$MAILDIR/lists/arch-tur
:0:
$MAILDIR/lists/arch-tur
:0:
$MAILDIR/lists/arch-projects
:0:
$MAILDIR/lists/arch-dev-public
:0:
* ^From: [email protected]
$MAILDIR/lists/arch-dev-public
:0:
* ^From: [email protected]
$MAILDIR/lists/arch-dev-public
# :0:
# * ^[email protected]
# $MAILDIR/lists/arch-commits
#:0:
#$MAILDIR/lists/slackit
:0:
$MAILDIR/lists/sikurezza
:0:
$MAILDIR/lists/milug
#:0:
#$MAILDIR/lists/gufi
#:0:
#$MAILDIR/lists/ondaquadra
#:0:
#$MAILDIR/lists/focus-virus
#:0:
#$MAILDIR/lists/focus-ms
#:0:
#$MAILDIR/lists/focus-linux
#:0:
#$MAILDIR/lists/ms-secnews
#:0:
#$MAILDIR/lists/linux-secnews
#:0:
#$MAILDIR/lists/sf-news
# :0:
# * ^[email protected]
# $MAILDIR/lists/fluxbox-users
# :0:
# * ^[email protected]
# $MAILDIR/lists/fluxbox-devel
# :0:
# * ^[email protected]
# $MAILDIR/lists/mutt-dev
:0:
$MAILDIR/lists/mutt-users
# :0:
# * ^[email protected]
# $MAILDIR/lists/oltrelinux-linux
# :0:
# * ^[email protected]
# $MAILDIR/lists/oltrelinux-network
# :0:
# * ^[email protected]
# $MAILDIR/lists/oltrelinux-security
# :0:
# * ^[email protected]
# $MAILDIR/lists/ondaquadra
# :0:
# * ^[email protected]
# $MAILDIR/lists/unimi_prog
:0:
$MAILDIR/lists/tgif
:0:
$MAILDIR/lists/openlabs
:0:
$MAILDIR/lists/unimi_infotelecom
:0:
$MAILDIR/lists/vim-mac
:0:
$MAILDIR/lists/vim-mac
# SpamAssassin
# ==============================
# The following line is only used if you use a system-wide /etc/procmailrc.
# See procmailrc(5) for infos on what it exactly does, the short version:
# * It ensures that the correct user is passed to spamd if spamc is used
# * The folders the mail is filed to later on is owned by the user, not
# root.
DROPPRIVS=yes
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
#
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#:
:0fw: spamassassin.lock
* < 256000
| spamassassin
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
$MAILDIR/spam
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
$MAILDIR/probably-spam
# ----------------------------------------
# ACCOUNTS
# ----------------------------------------
:0:
$MAILDIR/accounts/[email protected]
:0:
$MAILDIR/accounts/[email protected]
:0:
$MAILDIR/accounts/[email protected]
:0:
$MAILDIR/accounts/[email protected]
:0:
* ^Delivered-To: [email protected]
$MAILDIR/accounts/[email protected]
:0:
$MAILDIR/accounts/studenti.unimi.it
:0:
* ^Delivered-To: [email protected]
$MAILDIR/accounts/studenti.unimi.it
:0:
$MAILDIR/accounts/studenti.unimi.it
:0:
* ^TO_*@liste.unimi.it
$MAILDIR/accounts/studenti.unimi.it
:0:
* ^Delivered-To: [email protected]
$MAILDIR/accounts/[email protected]
# TUTTO IL RESTO VA IN INBOX
:0 * .*
$MAILDIR/inbox
exit