-
Notifications
You must be signed in to change notification settings - Fork 0
/
.procmailrc
174 lines (155 loc) · 4.5 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
# $Header: /home/photochr/src/perl5/Photochrome/RCS/.procmailrc,v 1.22 2020/01/17 21:19:45 photochr Exp $
# $Log: .procmailrc,v $
# Revision 1.22 2020/01/17 21:19:45 photochr
# Add [email protected] to -ccack and -replyto.
# Remove [email protected] from -replyto.
#
# Revision 1.21 2019/11/26 19:11:39 photochr
# Change location of test script to $HOME/src/perl/Photochrome/submitter.pl
#
# Revision 1.20 2019/09/04 18:23:23 photochr
# Summary: Change location of test script to $HOME/src/perl/Photochrome/submitter.pl; remove -replyto [email protected].
#
# Revision 1.19 2017/12/14 20:32:03 photochr
# Run submitter.pl from $HOME/bin.
#
# Revision 1.18 2017/12/14 20:02:37 photochr
# Change PERL5LIB to $HOME/lib/perl5.
#
# Revision 1.17 2016/10/06 20:36:56 photochr
# Correct spam filter to include tab characters in whitespace ($SPCNL).
#
# Revision 1.16 2016/09/06 23:17:56 photochr
# Modify attachment filter rule with \<*$ as per [HE#3130475].
#
# Revision 1.15 2016/05/14 16:53:46 photochr
# Add ;? to attachment filter rule as per [HE#3130475].
#
# Revision 1.14 2016/05/05 18:32:27 photochr
# Improve spam filtering.
#
# Revision 1.13 2016/04/07 16:30:18 photochr
# Change [email protected] to [email protected].
#
# Revision 1.12 2016/03/31 17:06:52 photochr
# Remove -ccack [email protected] from all rules.
#
# Revision 1.11 2014/10/05 19:09:49 photochr
# Add -debug and redirect STDERR to ~/submitter.log in [email protected] recipe.
#
# Revision 1.10 2014/08/18 01:33:22 photochr
# Set SMTPHOSTS.
#
# Revision 1.9 2014/06/24 16:14:40 photochr
# Change "banquet2013" to "banquet" and "cyberfest2013" to "imagefest".
#
# Revision 1.8 2013/10/19 19:13:24 photochr
# Add configuration for [email protected].
#
# Revision 1.7 2013/09/06 17:54:20 photochr
# Add configuration for [email protected].
#
# Revision 1.6 2013/08/29 03:42:20 photochr
# Add -ccack and -replyto [email protected].
#
# Revision 1.5 2013/08/09 01:28:03 photochr
# Remove -ccack [email protected] for [email protected].
#
# Revision 1.4 2013/06/01 17:10:58 photochr
# Add -ccack [email protected] for [email protected].
# Correct [email protected] X-Loop.
#
# Revision 1.3 2012/11/22 17:37:21 photochr
# Reenable shuffle.
#
# Revision 1.2 2012/11/15 17:38:38 photochr
# Set -noshuffle for banquet show submissions.
#
# Revision 1.1 2012/10/24 20:37:08 photochr
# Initial revision
#
PATH=~/bin:/usr/bin:/usr/local/bin
MAILDIR=/var/spool/mail/photochrome.org
SMTPHOSTS=photochrome.org
LOGFILE=$HOME/.procmail.log
VERBOSE=yes
COMSAT=no
PERL5LIB=$HOME/lib/perl5
#SENDMAILFLAGS=-i
WSPC = " " # whitespace = space + tab
SPC = "[$WSPC]" # regexp whitespace
NSPC = "[^$WSPC]" # negation of whitespace
SPCNL = "($SPC|$)" # space + tab + newline
:0fw
* < 60000
| /usr/bin/spamc
:0e
{
EXITCODE=77
}
:0:
* ^X-Spam-Status: Yes
$DEFAULT/.Spam/
:0B
* B ?? ^(Content-Disposition:[ ]*attachment;)?$SPCNL*(file)?name="?.*\.(asd|bat|chm|cmd|com|dll|exe|hlp|hta|js|jse|lnk|ocx|pif|scr|shb|shm|shs|vb|vbe|vbs|vbx|vxd|docm|dotm|xlsm|xlsb|pptm|ppsm|wsf|wsh|zip|ace|rar|jar|cab|docm|rtf)\<*$
/dev/null
:0
* ^(To|Cc|X-Forwarded-To):.*[email protected]
{
:0
* !^FROM_DAEMON
* !^X-Loop: [email protected]
{
:0 wc
| $HOME/src/perl5/Photochrome/submitter.pl -submitdir $HOME/submit-test -user submit -debug 2>>$HOME/submitter.log
:0 e
$HOME/submit-test/FAILED
}
:0
/dev/null
}
:0
* ^(To|Cc|X-Forwarded-To):.*[email protected]
{
:0
* !^FROM_DAEMON
* !^X-Loop: [email protected]
{
:0 wc
| $HOME/bin/submitter.pl -user projectionist -ccack [email protected] -ccack [email protected] -replyto [email protected]
:0 e
failures/
}
:0
/dev/null
}
:0
* ^(To|Cc|X-Forwarded-To):.*[email protected]
{
:0
* !^FROM_DAEMON
* !^X-Loop: [email protected]
{
:0 wc
| $HOME/bin/submitter.pl -submitdir $HOME/imagefest -user imagefest -noshuffle -ccack [email protected] -ccack [email protected] -replyto [email protected]
:0 e
failures/
}
:0
/dev/null
}
:0
* ^(To|Cc|X-Forwarded-To):.*[email protected]
{
:0
* !^FROM_DAEMON
* !^X-Loop: [email protected]
{
:0 wc
| $HOME/bin/submitter.pl -submitdir $HOME/banquet -user banquet -noshuffle -ccack [email protected] -ccack [email protected] -replyto [email protected]
:0 e
failures/
}
:0
/dev/null
}