-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprocmailrc
84 lines (64 loc) · 1.41 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
# -*- conf -*-
# Rogério Brito's .procmailrc
# VERBOSE=on
# Which directory are paths relative to?
MAILDIR=$HOME/Maildir/
# File for storing procmail's log
LOGFILE=mail.log
# Default location of delivery
DEFAULT=$HOME/Maildir/
#-------------------------------------------------------------------
# E-mail preprocessing
#-------------------------------------------------------------------
# Kill duplicate messages based on the "Message-Id" field
:0 Wh: msgid.lock
| formail -D 100000 msgid.cache
# Save probable duplicates for inspection?
:0 a:
.dupes/
:0fw
| spamc
:0
* ^X-Spam-Status: Yes
.Spam/
# sanitizer
:0fw
| drop-alternatives
# Add a "Lines: " header to messages so that Mutt doesn't display
# a zero-line count for messages stored in Maildir format
:0
* ! ^Lines:
{
:0Bfh
* $ H ?? ! ^Lines:
* -1^0
* 1^1 ^.*$
|formail -A "Lines: $="
}
#-------------------------------------------------------------------
# Dealing with mailing lists
#-------------------------------------------------------------------
:0
* ^From:.*freshmeat.net
.Newsletters/
:0
* ^TOlame.*
.Development.LAME/
:0
* ^From:.*[email protected]
.IME/
:0
* ^Mailing-List:.*opeth-nectar@
.nectar/
:0
* ^Sender:.*algorithms-\/[a-zA-Z\-]+
.algorithms-${MATCH}/
:0
* ^X-Mailing-List:.*debian-\/[a-z0-9\-]+
.Debian.debian-${MATCH}/
:0
* ^X-BeenThere:.*\/debconf-[a-zA-Z\-]+
.${MATCH}/
:0
* ^X-Mailing-List:.*ticker-planetdebian
.Debian.planetdebian/