summaryrefslogtreecommitdiff
path: root/sieve/testsuite/Reject
blob: eab5e442685bf25a5a2825b3a64052f3f3a0feb5 (plain)
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
# This file is part of Mailutils testsuite.
# Copyright (C) 2002, Free Software Foundation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#

TEST reject.sv
PATTERN BEGIN
REJECT on msg uid 1
REJECT on msg uid 2
REJECT on msg uid 3
PATTERN END

FILE BEGIN
ENVELOPE FROM: MAILER-DAEMON@nonexistent.net
ENVELOPE TO: <coyote@desert.example.org>
   0: To: <coyote@desert.example.org>
-re
   1: X-Authentication-Warning: [^ \t]+ set sender using -f flag
-re
   2: Content-Type: multipart/mixed; boundary="[0-9:=-]+"
   3: MIME-Version: 1.0
   4:
-re
   5: [0-9:=-]+
   6:
-re
   7: The original message was received at [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]* from coyote@desert.example.org.
   8: Message was refused by recipient's mail filtering program.
   9: Reason given was as follows:
  10: 
  11: I don't want to read these messages.
  12: 
  13: Regards.
  14:
-re
  15: [0-9:=-]+
  16: Content-Type: message/delivery-status
  17:
-re
  18: Reporting-UA: sieve; GNU Mailutils [0-9][0-9.]*
-re
  19: Arrival-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  20: Final-Recipient: RFC822; foobar@nonexistent.net
  21: Action: deleted
  22: Disposition: automatic-action/MDN-sent-automatically;deleted
-re
  23: Last-Attempt-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  24:
-re
  25: [0-9:=-]+
  26: Content-Type: message/rfc822
  27: 
  28: From: coyote@desert.example.org
  29: To: roadrunner@acme.example.com
  30: Subject: I have a present for you
  31: X-Caffeine: C8H10N4O2
  32: 
  33: Look, I'm sorry about the whole anvil thing, and I really
  34: didn't mean to try and drop it on you from the top of the
  35: cliff.  I want to try to make it up to you.  I've got some
  36: great birdseed over here at my place--top of the line
  37: stuff--and if you come by, I'll have it all wrapped up
  38: for you.  I'm really sorry for all the problems I've caused
  39: for you over the years, but I know we can work this out.
  40: 
  41: -- 
  42: Wile E. Coyote   "Super Genius"   coyote@desert.example.org
  43:
-re
  44: [0-9:=-]+
  45: 
END OF MESSAGE
ENVELOPE FROM: MAILER-DAEMON@nonexistent.net
ENVELOPE TO: <b1ff@de.res.example.com>
   0: To: <b1ff@de.res.example.com>
-re
   1: X-Authentication-Warning: [^ \t]+ set sender using -f flag
-re
   2: Content-Type: multipart/mixed; boundary="[0-9:=-]+"
   3: MIME-Version: 1.0
   4:
-re
   5: [0-9:=-]+
   6:
-re
   7: The original message was received at [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]* from b1ff@de.res.example.com.
   8: Message was refused by recipient's mail filtering program.
   9: Reason given was as follows:
  10: 
  11: I don't want to read these messages.
  12: 
  13: Regards.
  14:
-re
  15: [0-9:=-]+
  16: Content-Type: message/delivery-status
  17:
-re
  18: Reporting-UA: sieve; GNU Mailutils [0-9][0-9.]*
-re
  19: Arrival-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  20: Final-Recipient: RFC822; foobar@nonexistent.net
  21: Action: deleted
  22: Disposition: automatic-action/MDN-sent-automatically;deleted
-re
  23: Last-Attempt-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  24:
-re
  25: [0-9:=-]+
  26: Content-Type: message/rfc822
  27: 
  28: From: youcouldberich!@reply-by-postal-mail.invalid
  29: To: rube@landru.example.edu
  30: Subject: $$$ YOU, TOO, CAN BE A MILLIONAIRE! $$$
  31: Date: TBD
  32: X-Number: 0015
  33:
  34: YOU MAY HAVE ALREADY WON TEN MILLION DOLLARS, BUT I DOUBT
  35: IT!  SO JUST POST THIS TO SIX HUNDRED NEWSGROUPS!  IT WILL
  36: GUARANTEE THAT YOU GET AT LEAST FIVE RESPONSES WITH MONEY!
  37: MONEY! MONEY! COLD HARD CASH!  YOU WILL RECEIVE OVER
  38: $20,000 IN LESS THAN TWO MONTHS!  AND IT'S LEGAL!!!!!!!!!
  39: !!!!!!!!!!!!!!!!!!111111111!!!!!!!11111111111!!1  JUST
  40: SEND $5 IN SMALL, UNMARKED BILLS TO THE ADDRESSES BELOW!
  41:
-re
  42: [0-9:=-]+
  43:
END OF MESSAGE
ENVELOPE FROM: MAILER-DAEMON@nonexistent.net
ENVELOPE TO: <bar@dontmailme.org>
   0: To: <bar@dontmailme.org>
-re
   1: X-Authentication-Warning: [^ \t]+ set sender using -f flag
-re
   2: Content-Type: multipart/mixed; boundary="[0-9:=-]+"
   3: MIME-Version: 1.0
   4:
-re
   5: [0-9:=-]+
   6:
-re
   7: The original message was received at [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]* from bar@dontmailme.org.
   8: Message was refused by recipient's mail filtering program.
   9: Reason given was as follows:
  10: 
  11: I don't want to read these messages.
  12: 
  13: Regards.
  14:
-re
  15: [0-9:=-]+
  16: Content-Type: message/delivery-status
  17:
-re
  18: Reporting-UA: sieve; GNU Mailutils [0-9][0-9.]*
-re
  19: Arrival-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  20: Final-Recipient: RFC822; foobar@nonexistent.net
  21: Action: deleted
  22: Disposition: automatic-action/MDN-sent-automatically;deleted
-re
  23: Last-Attempt-Date: [A-Z][a-z][a-z], [A-Z][a-z][a-z] [ 0-3][0-9] [ 0-2][0-9]:[0-6][0-9]:[0-6][0-9] [0-9][0-9][0-9][0-9] [a-zA-Z0-9]*
  24:
-re
  25: [0-9:=-]+
  26: Content-Type: message/rfc822
  27: 
  28: Received: (from bar@dontmailme.org)
  29: 	by dontmailme.org id fERKR9N16790
  30: 	for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200
  31: Date: Fri, 28 Dec 2001 23:28:08 +0200
  32: From: Bar <bar@dontmailme.org>
  33: To: Foo Bar <foobar@nonexistent.net>
  34: Message-Id: <200112232808.fERKR9N16790@dontmailme.org>
  35: Subject: Coffee
  36: 
  37: How about some coffee?
  38:
-re
  39: [0-9:=-]+
  40: 
END OF MESSAGE
FILE END
TEST END

# End of Reject

Return to:

Send suggestions and report system problems to the System administrator.