Moved from mail/testsuite
Showing
11 changed files
with
323 additions
and
0 deletions
testsuite/Makefile.am
0 → 100644
1 | EXTRA_DIST = makespool | ||
2 | test_dirs = lib etc spool folder | ||
3 | |||
4 | dist-hook: | ||
5 | here=`cd $(top_builddir)/$(subdir) && pwd`; \ | ||
6 | srcdir=`cd $(srcdir) && pwd`; \ | ||
7 | distdir=`cd $(distdir) && pwd`; \ | ||
8 | for dir in $(test_dirs); \ | ||
9 | do \ | ||
10 | cd $$srcdir;\ | ||
11 | mkdir $$distdir/$$dir;\ | ||
12 | cd $$dir;\ | ||
13 | for file in DISTFILES `cat DISTFILES`; do \ | ||
14 | d=$$srcdir/$$dir; \ | ||
15 | if test -d $$d/$$file; then \ | ||
16 | cp -pr $$d/$$file $$distdir/$$dir/$$file; \ | ||
17 | else \ | ||
18 | test -f $$distdir/$$dir/$$file \ | ||
19 | || cp -p $$d/$$file $$distdir/$$dir/$$file || exit; \ | ||
20 | fi; \ | ||
21 | done;\ | ||
22 | done;\ | ||
23 | cd $$here | ||
24 | |||
25 | DISTCLEANFILES=*.exp *.log *.sum | ||
26 | |||
27 | distclean-local: | ||
28 | -rm -rf data |
testsuite/etc/DISTFILES
0 → 100644
1 | mail.rc |
testsuite/etc/mail.rc
0 → 100644
testsuite/folder/DISTFILES
0 → 100644
testsuite/folder/one
0 → 100644
1 | From foobar@nonexistent.net Fri Dec 28 22:18:09 2001 | ||
2 | Received: (from foobar@nonexistent.net) | ||
3 | by nonexistent.net id fBSKI8N04906 | ||
4 | for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200 | ||
5 | Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
6 | From: Foo Bar <foobar@nonexistent.net> | ||
7 | Message-Id: <200112282018.fBSKI8N04906@nonexistent.net> | ||
8 | To: Bar <bar@dontmailme.org> | ||
9 | Subject: Mailbox 1 | ||
10 | |||
11 | This is the first folder mailbox. | ||
12 |
testsuite/folder/two
0 → 100644
1 | From foobar@nonexistent.net Fri Dec 28 22:18:09 2001 | ||
2 | Received: (from foobar@nonexistent.net) | ||
3 | by nonexistent.net id fBSKI8N04906 | ||
4 | for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200 | ||
5 | Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
6 | From: Foo Bar <foobar@nonexistent.net> | ||
7 | Message-Id: <200112282018.fBSKI8N04906@nonexistent.net> | ||
8 | To: Bar <bar@dontmailme.org> | ||
9 | Subject: Mailbox 2 | ||
10 | |||
11 | This is the second folder mailbox | ||
12 |
testsuite/makespool
0 → 100755
1 | #! /bin/sh | ||
2 | # GNU mailutils - a suite of utilities for electronic mail | ||
3 | # Copyright (C) 2002 Free Software Foundation, Inc. | ||
4 | # | ||
5 | # This program is free software; you can redistribute it and/or modify | ||
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2, or (at your option) | ||
8 | # any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | # GNU General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software | ||
17 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
18 | |||
19 | if [ "$1" = "-r" ]; then | ||
20 | shift | ||
21 | rm -rf $* | ||
22 | exit 0 | ||
23 | fi | ||
24 | |||
25 | mkdirhier() { | ||
26 | dir="" | ||
27 | for d in `echo $1|sed 's,/, ,g'` | ||
28 | do | ||
29 | dir="$dir/$d" | ||
30 | test -d $dir || mkdir $dir | ||
31 | done | ||
32 | } | ||
33 | |||
34 | while [ $# -gt 0 ] | ||
35 | do | ||
36 | SRCDIR=${1:?} | ||
37 | DSTDIR=${2:?} | ||
38 | shift 2 | ||
39 | |||
40 | if [ ! -d $SRCDIR ]; then | ||
41 | echo "$SRCDIR not a directory" >&2 | ||
42 | exit 1 | ||
43 | fi | ||
44 | if [ ! -r $SRCDIR/DISTFILES ]; then | ||
45 | echo "$SRCDIR/DISTFILES does not exist" >&2 | ||
46 | exit 1 | ||
47 | fi | ||
48 | mkdirhier $DSTDIR | ||
49 | chmod -R u+w $DSTDIR | ||
50 | rm -rf $DSTDIR/* | ||
51 | |||
52 | cat $SRCDIR/DISTFILES | | ||
53 | while read NAME | ||
54 | do | ||
55 | cp $SRCDIR/$NAME $DSTDIR/$NAME | ||
56 | chmod u+w $DSTDIR/$NAME | ||
57 | done | ||
58 | done |
testsuite/spool/DISTFILES
0 → 100644
testsuite/spool/mbox
0 → 100644
1 | From gray@Mirddin.farlep.net Tue Jul 16 12:11:35 2002 | ||
2 | Organization: Farlep-Internet | ||
3 | Received: from Mirddin.farlep.net (localhost [127.0.0.1]) | ||
4 | by Mirddin.farlep.net with ESMTP id g6G9BZb00791 | ||
5 | for <gray@mirddin.farlep.net>; Tue, 16 Jul 2002 12:11:35 +0300 | ||
6 | Message-Id: <200207160911.g6G9BZb00791@Mirddin.farlep.net> | ||
7 | To: To: Bar <bar@dontmailme.org> | ||
8 | Subject: MBOX | ||
9 | Date: Tue, 16 Jul 2002 12:11:35 +0300 | ||
10 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
11 | |||
12 | |||
13 | This is a sample user's mbox. | ||
14 |
testsuite/spool/mbox1
0 → 100644
1 | From foobar@nonexistent.net Fri Dec 28 22:18:09 2001 | ||
2 | Received: (from foobar@nonexistent.net) | ||
3 | by nonexistent.net id fBSKI8N04906 | ||
4 | for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200 | ||
5 | Date: Fri, 28 Dec 2001 22:18:08 +0200 | ||
6 | From: Foo Bar <foobar@nonexistent.net> | ||
7 | Message-Id: <200112282018.fBSKI8N04906@nonexistent.net> | ||
8 | To: Bar <bar@dontmailme.org> | ||
9 | Subject: Jabberwocky | ||
10 | |||
11 | `Twas brillig, and the slithy toves | ||
12 | Did gyre and gimble in the wabe; | ||
13 | All mimsy were the borogoves, | ||
14 | And the mome raths outgrabe. | ||
15 | |||
16 | `Beware the Jabberwock, my son! | ||
17 | The jaws that bite, the claws that catch! | ||
18 | Beware the Jujub bird, and shun | ||
19 | The frumious Bandersnatch!' | ||
20 | |||
21 | He took his vorpal sword in hand: | ||
22 | Long time the manxome foe he sought -- | ||
23 | So rested he by the Tumtum gree, | ||
24 | And stood awhile in thought. | ||
25 | |||
26 | And as in uffish thought he stood, | ||
27 | The Jabberwock, with eyes of flame, | ||
28 | Came whiffling through the tulgey wook, | ||
29 | And burbled as it came! | ||
30 | |||
31 | One, two! One, two! And through and through | ||
32 | The vorpal blade went snicker-snack! | ||
33 | He left it dead, and with its head | ||
34 | He went galumphing back. | ||
35 | |||
36 | `And has thou slain the Jabberwock? | ||
37 | Come to my arms, my beamish boy! | ||
38 | O frabjous day! Calloh! Callay! | ||
39 | He chortled in his joy. | ||
40 | |||
41 | `Twas brillig, and the slithy toves | ||
42 | Did gyre and gimble in the wabe; | ||
43 | All mimsy were the borogoves, | ||
44 | And the mome raths outgrabe. | ||
45 | |||
46 | |||
47 | From bar@dontmailme.org Fri Dec 28 23:28:09 2001 | ||
48 | Received: (from bar@dontmailme.org) | ||
49 | by dontmailme.org id fERKR9N16790 | ||
50 | for foobar@nonexistent.net; Fri, 28 Dec 2001 22:18:08 +0200 | ||
51 | Date: Fri, 28 Dec 2001 23:28:08 +0200 | ||
52 | From: Bar <bar@dontmailme.org> | ||
53 | To: Foo Bar <foobar@nonexistent.net> | ||
54 | Message-Id: <200112232808.fERKR9N16790@dontmailme.org> | ||
55 | Subject: Re: Jabberwocky | ||
56 | |||
57 | It seems very pretty, but it's *rather* hard to understand!' | ||
58 | Somehow it seems to fill my head with ideas -- only I don't | ||
59 | exactly know what they are! However, SOMEBODY killed SOMETHING: | ||
60 | that's clear, at any rate... | ||
61 | |||
62 | From gray@Mirddin.farlep.net Sat Jul 13 00:43:18 2002 | ||
63 | Organization: Farlep-Internet | ||
64 | Received: from Mirddin.farlep.net (localhost [127.0.0.1]) | ||
65 | by Mirddin.farlep.net with ESMTP id g6CLhIb05086 | ||
66 | for <gray@mirddin.farlep.net>; Sat, 13 Jul 2002 00:43:18 +0300 | ||
67 | Message-Id: <200207122143.g6CLhIb05086@Mirddin.farlep.net> | ||
68 | To: Foo Bar <foobar@nonexistent.net> | ||
69 | Subject: Simple MIME | ||
70 | MIME-Version: 1.0 | ||
71 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" | ||
72 | Content-ID: <5082.1026510189.0@Mirddin.farlep.net> | ||
73 | Date: Sat, 13 Jul 2002 00:43:18 +0300 | ||
74 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
75 | |||
76 | ------- =_aaaaaaaaaa0 | ||
77 | Content-Type: text/plain; name="msg.1"; charset="us-ascii" | ||
78 | Content-ID: <5082.1026510189.1@Mirddin.farlep.net> | ||
79 | Content-Description: How doth | ||
80 | |||
81 | How doth the little crocodile | ||
82 | Improve his shining tail, | ||
83 | And pour the waters of the Nile | ||
84 | On every golden scale! | ||
85 | |||
86 | `How cheerfully he seems to grin, | ||
87 | How neatly spread his claws, | ||
88 | And welcome little fishes in | ||
89 | With gently smiling jaws! | ||
90 | |||
91 | ------- =_aaaaaaaaaa0 | ||
92 | Content-Type: application/octet-stream; name="msg.21" | ||
93 | Content-ID: <5082.1026510189.2@Mirddin.farlep.net> | ||
94 | Content-Description: Father William Part I | ||
95 | Content-Transfer-Encoding: base64 | ||
96 | |||
97 | YFlvdSBhcmUgb2xkLCBGYXRoZXIgV2lsbGlhbSwnIHRoZSB5b3VuZyBtYW4gc2FpZCwKYEFuZCB5 | ||
98 | b3VyIGhhaXIgaGFzIGJlY29tZSB2ZXJ5IHdoaXRlOwpBbmQgeWV0IHlvdSBpbmNlc3NhbnRseSBz | ||
99 | dGFuZCBvbiB5b3VyIGhlYWQtLQpEbyB5b3UgdGhpbmssIGF0IHlvdXIgYWdlLCBpdCBpcyByaWdo | ||
100 | dD8nCgpgSW4gbXkgeW91dGgsJyBGYXRoZXIgV2lsbGlhbSByZXBsaWVkIHRvIGhpcyBzb24sCmBJ | ||
101 | IGZlYXJlZCBpdCBtaWdodCBpbmp1cmUgdGhlIGJyYWluOwpCdXQsIG5vdyB0aGF0IEknbSBwZXJm | ||
102 | ZWN0bHkgc3VyZSBJIGhhdmUgbm9uZSwKV2h5LCBJIGRvIGl0IGFnYWluIGFuZCBhZ2Fpbi4nCgo= | ||
103 | |||
104 | ------- =_aaaaaaaaaa0-- | ||
105 | |||
106 | From gray@Mirddin.farlep.net Sat Jul 13 00:50:58 2002 | ||
107 | Organization: Farlep-Internet | ||
108 | Received: from Mirddin.farlep.net (localhost [127.0.0.1]) | ||
109 | by Mirddin.farlep.net with ESMTP id g6CLowb05126 | ||
110 | for <gray@mirddin.farlep.net>; Sat, 13 Jul 2002 00:50:58 +0300 | ||
111 | Message-Id: <200207122150.g6CLowb05126@Mirddin.farlep.net> | ||
112 | To: Foo Bar <foobar@nonexistent.net> | ||
113 | Subject: Nested MIME | ||
114 | MIME-Version: 1.0 | ||
115 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" | ||
116 | Content-ID: <5122.1026510654.1@Mirddin.farlep.net> | ||
117 | Date: Sat, 13 Jul 2002 00:50:58 +0300 | ||
118 | From: Sergey Poznyakoff <gray@Mirddin.farlep.net> | ||
119 | |||
120 | ------- =_aaaaaaaaaa0 | ||
121 | Content-Type: text/plain; name="msg.21"; charset="us-ascii" | ||
122 | Content-ID: <5122.1026510654.2@Mirddin.farlep.net> | ||
123 | Content-Description: Father William Part I | ||
124 | |||
125 | `You are old, Father William,' the young man said, | ||
126 | `And your hair has become very white; | ||
127 | And yet you incessantly stand on your head-- | ||
128 | Do you think, at your age, it is right?' | ||
129 | |||
130 | `In my youth,' Father William replied to his son, | ||
131 | `I feared it might injure the brain; | ||
132 | But, now that I'm perfectly sure I have none, | ||
133 | Why, I do it again and again.' | ||
134 | |||
135 | |||
136 | ------- =_aaaaaaaaaa0 | ||
137 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa1" | ||
138 | Content-ID: <5122.1026510654.3@Mirddin.farlep.net> | ||
139 | |||
140 | ------- =_aaaaaaaaaa1 | ||
141 | Content-Type: application/octet-stream; name="msg.22" | ||
142 | Content-ID: <5122.1026510654.4@Mirddin.farlep.net> | ||
143 | Content-Description: Father William Part II | ||
144 | Content-Transfer-Encoding: base64 | ||
145 | |||
146 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhcyBJIG1lbnRpb25lZCBiZWZvcmUsCkFu | ||
147 | ZCBoYXZlIGdyb3duIG1vc3QgdW5jb21tb25seSBmYXQ7CllldCB5b3UgdHVybmVkIGEgYmFjay1z | ||
148 | b21lcnNhdWx0IGluIGF0IHRoZSBkb29yLS0KUHJheSwgd2hhdCBpcyB0aGUgcmVhc29uIG9mIHRo | ||
149 | YXQ/JwoKYEluIG15IHlvdXRoLCcgc2FpZCB0aGUgc2FnZSwgYXMgaGUgc2hvb2sgaGlzIGdyZXkg | ||
150 | bG9ja3MsCmBJIGtlcHQgYWxsIG15IGxpbWJzIHZlcnkgc3VwcGxlCkJ5IHRoZSB1c2Ugb2YgdGhp | ||
151 | cyBvaW50bWVudC0tb25lIHNoaWxsaW5nIHRoZSBib3gtLQpBbGxvdyBtZSB0byBzZWxsIHlvdSBh | ||
152 | IGNvdXBsZT8nCg== | ||
153 | |||
154 | ------- =_aaaaaaaaaa1 | ||
155 | Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa2" | ||
156 | Content-ID: <5122.1026510654.5@Mirddin.farlep.net> | ||
157 | |||
158 | ------- =_aaaaaaaaaa2 | ||
159 | Content-Type: application/octet-stream; name="msg.23" | ||
160 | Content-ID: <5122.1026510654.6@Mirddin.farlep.net> | ||
161 | Content-Description: Father William Part III | ||
162 | Content-Transfer-Encoding: base64 | ||
163 | |||
164 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBhbmQgeW91ciBqYXdzIGFyZSB0b28gd2Vh | ||
165 | awpGb3IgYW55dGhpbmcgdG91Z2hlciB0aGFuIHN1ZXQ7CllldCB5b3UgZmluaXNoZWQgdGhlIGdv | ||
166 | b3NlLCB3aXRoIHRoZSBib25lcyBhbmQgdGhlIGJlYWstLQpQcmF5IGhvdyBkaWQgeW91IG1hbmFn | ||
167 | ZSB0byBkbyBpdD8nCgpgSW4gbXkgeW91dGgsJyBzYWlkIGhpcyBmYXRoZXIsIGBJIHRvb2sgdG8g | ||
168 | dGhlIGxhdywKQW5kIGFyZ3VlZCBlYWNoIGNhc2Ugd2l0aCBteSB3aWZlOwpBbmQgdGhlIG11c2N1 | ||
169 | bGFyIHN0cmVuZ3RoLCB3aGljaCBpdCBnYXZlIHRvIG15IGphdywKSGFzIGxhc3RlZCB0aGUgcmVz | ||
170 | dCBvZiBteSBsaWZlLicK | ||
171 | |||
172 | ------- =_aaaaaaaaaa2 | ||
173 | Content-Type: application/octet-stream; name="msg.24" | ||
174 | Content-ID: <5122.1026510654.7@Mirddin.farlep.net> | ||
175 | Content-Description: Father William Part IV | ||
176 | Content-Transfer-Encoding: base64 | ||
177 | |||
178 | YFlvdSBhcmUgb2xkLCcgc2FpZCB0aGUgeW91dGgsIGBvbmUgd291bGQgaGFyZGx5IHN1cHBvc2UK | ||
179 | VGhhdCB5b3VyIGV5ZSB3YXMgYXMgc3RlYWR5IGFzIGV2ZXI7CllldCB5b3UgYmFsYW5jZWQgYW4g | ||
180 | ZWVsIG9uIHRoZSBlbmQgb2YgeW91ciBub3NlLS0KV2hhdCBtYWRlIHlvdSBzbyBhd2Z1bGx5IGNs | ||
181 | ZXZlcj8nCgpgSSBoYXZlIGFuc3dlcmVkIHRocmVlIHF1ZXN0aW9ucywgYW5kIHRoYXQgaXMgZW5v | ||
182 | dWdoLCcKU2FpZCBoaXMgZmF0aGVyOyBgZG9uJ3QgZ2l2ZSB5b3Vyc2VsZiBhaXJzIQpEbyB5b3Ug | ||
183 | dGhpbmsgSSBjYW4gbGlzdGVuIGFsbCBkYXkgdG8gc3VjaCBzdHVmZj8KQmUgb2ZmLCBvciBJJ2xs | ||
184 | IGtpY2sgeW91IGRvd24gc3RhaXJzIScK | ||
185 | |||
186 | ------- =_aaaaaaaaaa2-- | ||
187 | |||
188 | ------- =_aaaaaaaaaa1-- | ||
189 | |||
190 | ------- =_aaaaaaaaaa0-- | ||
191 |
testsuite/spool/teaparty.mbox
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment