aboutsummaryrefslogtreecommitdiff
path: root/tests/mime00.at
blob: 2a7f588f369e1a2d163d403cec8f66f1966fbeaa (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
# This file is part of GNU Anubis testsuite.        -*- autotest -*-
# Copyright (C) 2003-2020 The Anubis Team.
#
# GNU Anubis 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 3 of the License, or (at your option)
# any later version.
#
# GNU Anubis 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 GNU Anubis.  If not, see <http://www.gnu.org/licenses/>.
AT_SETUP([Pass a MIME encoded message])
AT_KEYWORDS([mime])
AT_ANUBIS_CONFIG([empty.rc],[
BEGIN CONTROL
logfile $PWD/etc/anubis.log
local-mta $abs_builddir/mta -bs -d $PWD/etc/mta.log
END
])
AT_DATA([input],
[HELO localhost		
MAIL FROM:<gray@gnu.org>
RCPT TO:<polak@gnu.org>
DATA
Received: from Mirddin.farlep.net (localhost [127.0.0.1]) 
	by Mirddin.farlep.net with ESMTP id g6CLhIb05086
	for <gray@mirddin.farlep.net>; Sat, 13 Jul 2002 00:43:18 +0300
Message-Id: <200207122143.g6CLhIb05086@Mirddin.farlep.net>
To: Foo Bar <foobar@nonexistent.net>
Subject: Simple MIME
MIME-Version: 1.0
Content-Type: multipart/mixed;
      boundary="----- =_aaaaaaaaaa0"
Content-ID: <5082.1026510189.0@Mirddin.farlep.net>
Date: Sat, 13 Jul 2002 00:43:18 +0300
From: Sergey Poznyakoff <gray@Mirddin.farlep.net>

------- =_aaaaaaaaaa0
Content-Type: text/plain; name="msg.1"; charset="us-ascii"
Content-ID: <5082.1026510189.1@Mirddin.farlep.net>
Content-Description: How doth

How doth the little crocodile
Improve his shining tail,
And pour the waters of the Nile
On every golden scale!

`How cheerfully he seems to grin,
How neatly spread his claws,
And welcome little fishes in
With gently smiling jaws!

------- =_aaaaaaaaaa0
Content-Type: application/octet-stream; name="msg.21"
Content-ID: <5082.1026510189.2@Mirddin.farlep.net>
Content-Description: Father William Part I
Content-Transfer-Encoding: base64

YFlvdSBhcmUgb2xkLCBGYXRoZXIgV2lsbGlhbSwnIHRoZSB5b3VuZyBtYW4gc2FpZCwKYEFuZCB5
b3VyIGhhaXIgaGFzIGJlY29tZSB2ZXJ5IHdoaXRlOwpBbmQgeWV0IHlvdSBpbmNlc3NhbnRseSBz
dGFuZCBvbiB5b3VyIGhlYWQtLQpEbyB5b3UgdGhpbmssIGF0IHlvdXIgYWdlLCBpdCBpcyByaWdo
dD8nCgpgSW4gbXkgeW91dGgsJyBGYXRoZXIgV2lsbGlhbSByZXBsaWVkIHRvIGhpcyBzb24sCmBJ
IGZlYXJlZCBpdCBtaWdodCBpbmp1cmUgdGhlIGJyYWluOwpCdXQsIG5vdyB0aGF0IEknbSBwZXJm
ZWN0bHkgc3VyZSBJIGhhdmUgbm9uZSwKV2h5LCBJIGRvIGl0IGFnYWluIGFuZCBhZ2Fpbi4nCgo=

------- =_aaaaaaaaaa0--
.
QUIT
])
AT_CHECK([
anubis --norc --relax-perm-check --altrc etc/empty.rc --stdio < input | tr -d '\r'
],
[0],
[ignore],
[ignore])
AT_CHECK([diff input etc/mta.log])
AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.