diff options
Diffstat (limited to 'testsuite/etc/std.pin')
-rw-r--r-- | testsuite/etc/std.pin | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/testsuite/etc/std.pin b/testsuite/etc/std.pin deleted file mode 100644 index fb76faf..0000000 --- a/testsuite/etc/std.pin +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | # This file is part of GNU Anubis testsuite. | ||
2 | # Copyright (C) 2003-2014 The Anubis Team. | ||
3 | # | ||
4 | # GNU Anubis is free software; you can redistribute it and/or modify | ||
5 | # it under the terms of the GNU General Public License as published by | ||
6 | # the Free Software Foundation; either version 2 of the License, or | ||
7 | # (at your option) any later version. | ||
8 | # | ||
9 | # GNU Anubis is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Anubis; if not, write to the Free Software Foundation, | ||
16 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
17 | |||
18 | :TEST parse | ||
19 | :MODE EXEC | ||
20 | :OPTIONS --check-config=1 | ||
21 | :RCFILE std.rc | ||
22 | :RETCODE 0 | ||
23 | :PATTERN | ||
24 | BEGIN SECTION CONTROL | ||
25 | ASGN: logfile = anubis.log | ||
26 | ASGN: remote-mta = localhost:25 | ||
27 | ifdef(`WITH_SSL',` ASGN: ssl = yes | ||
28 | ')`'dnl | ||
29 | END SECTION CONTROL | ||
30 | BEGIN SECTION RULE | ||
31 | ifdef(`WITH_GPG',` ASGN: gpg-passphrase = *** | ||
32 | ')`'dnl | ||
33 | REMOVE HEADER :exact [Lines] | ||
34 | COND: COMMAND[mail from] :posix [.*<?root@localhost>?] | ||
35 | IFTRUE: | ||
36 | STOP | ||
37 | END COND | ||
38 | COND: AND (HEADER[Subject] :posix [(.*)],NOT (HEADER[Subject] :posix :scase [URGENT])) | ||
39 | IFTRUE: | ||
40 | ADD HEADER[X-Comment] "This message is not URGENT (\1)." | ||
41 | ADD HEADER[X-Comment] "GNU's Not Unix! (\1)" | ||
42 | END COND | ||
43 | COND: HEADER[X-Mailer] :posix [(.*)] | ||
44 | IFTRUE: | ||
45 | ADD HEADER[X-Comment] "My love \1" | ||
46 | MODIFY HEADER :exact [X-Mailer] "The lousy mailer \1" | ||
47 | END COND | ||
48 | RULE: HEADER :posix [gpgd:(.*)] | ||
49 | BODY | ||
50 | ADD HEADER[X-GPG-Comment] "Encrypted for \1" | ||
51 | ifdef(`WITH_GPG',` ASGN: gpg-encrypt = \1 | ||
52 | ')`'dnl | ||
53 | END RULE | ||
54 | COND: HEADER[Subject] :posix [signature] | ||
55 | IFTRUE: | ||
56 | ASGN: signature-file-append = yes | ||
57 | END COND | ||
58 | COND: HEADER[Subject] :posix :scase [external] | ||
59 | IFTRUE: | ||
60 | ASGN: external-body-processor = /usr/bin/formail | ||
61 | END COND | ||
62 | ifdef(`WITH_GPG',` COND: HEADER[Subject] :posix [gpg-all] | ||
63 | IFTRUE: | ||
64 | ASGN: gpg-encrypt = USERNAME | ||
65 | ASGN: gpg-sign = default | ||
66 | END COND | ||
67 | COND: HEADER[Subject] :posix [gpg-encrypt] | ||
68 | IFTRUE: | ||
69 | ASGN: gpg-encrypt = USERNAME-1,USERNAME-2,USERNAME-3 | ||
70 | END COND | ||
71 | COND: HEADER[Subject] :posix [gpg-sign] | ||
72 | IFTRUE: | ||
73 | ASGN: gpg-sign = default | ||
74 | END COND | ||
75 | ')`'dnl | ||
76 | ifdef(`WITH_GUILE',` COND: HEADER[Subject] :posix [rot13-all] | ||
77 | IFTRUE: | ||
78 | ASGN: guile-process = rot-13 #:body | ||
79 | ASGN: guile-process = rot-13 #:subject | ||
80 | END COND | ||
81 | COND: HEADER[Subject] :posix [rot13-body] | ||
82 | IFTRUE: | ||
83 | ASGN: guile-process = rot-13 #:body | ||
84 | END COND | ||
85 | COND: HEADER[Subject] :posix [rot13-subject] | ||
86 | IFTRUE: | ||
87 | ASGN: guile-process = rot-13 #:subject | ||
88 | END COND | ||
89 | ')`'dnl | ||
90 | COND: HEADER[Subject] :posix [body-append] | ||
91 | IFTRUE: | ||
92 | ASGN: body-append = misc/notes.txt | ||
93 | END COND | ||
94 | COND: HEADER[Subject] :posix [ALL] | ||
95 | IFTRUE: | ||
96 | ASGN: body-append = misc/notes.txt | ||
97 | ifdef(`WITH_GPG',` ASGN: gpg-encrypt = USERNAME | ||
98 | ')`'dnl | ||
99 | ifdef(`WITH_GUILE',` ASGN: guile-process = rot-13 #:body | ||
100 | ASGN: guile-process = rot-13 #:subject | ||
101 | ')`'dnl | ||
102 | END COND | ||
103 | END SECTION RULE | ||
104 | :END PATTERN | ||
105 | :END TEST | ||