summaryrefslogtreecommitdiff
path: root/mail/nmh-devel/files/patch-test_post_test-post-basic
blob: d8814b638c51f5c2cf6b5bc033ea12b1e5c9c644 (plain) (blame)
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
--- test/post/test-post-basic.orig	2024-07-06 07:47:54.000000000 -0700
+++ test/post/test-post-basic	2024-07-18 14:09:44.765195000 -0700
@@ -143,13 +143,12 @@
 set +e
 check "${testname}.err" "${testname}.err.expected"
 
-#### Cheat: SMTPUTF8 enables 8BITMIME in fakestmp.  Set it for each test
-#### that needs it below.
-
 #
 # 8-bit with 8BITMIME support
 #
 start_test '8-bit with 8BITMIME support'
+# Cheat: SMTPUTF8 enables 8BITMIME in fakestmp
+SMTPUTF8=1; export SMTPUTF8
 cat > "${testname}.expected" <<EOF
 EHLO nosuchhost.example.com
 MAIL FROM:<nobody@example.com> BODY=8BITMIME
@@ -203,46 +202,7 @@
 .
 QUIT
 EOF
-(SMTPUTF8=1; export SMTPUTF8
-test_post "${testname}.actual" "${testname}.expected")
 
-#
-# binary content containing a NUL
-#
-start_test "content containing NUL"
-#### Use the printf to output the NUL byte so that this
-#### file (test-binary) doesn't need to be a binary file.
-printf '%s\000%s' > "${MH_TEST_DIR}/Mail/draft" \
-"From: Mr Nobody <nobody@example.com>
-To: Somebody Else <somebody@example.com>
-Subject: Test
-MIME-Version: 1.0
-Content-Type: application/octet-stream
-Content-Transfer-Encoding: binary
 
-This is a test, with a NUL character:  " "
-"
-
-printf '%s\000%s' > "${testname}.expected" \
-"EHLO nosuchhost.example.com
-MAIL FROM:<nobody@example.com> BODY=8BITMIME
-RCPT TO:<somebody@example.com>
-DATA
-From: Mr Nobody <nobody@example.com>
-To: Somebody Else <somebody@example.com>
-Subject: Test
-MIME-Version: 1.0
-Content-Type: application/octet-stream
-Content-Transfer-Encoding: binary
-Date:
-
-This is a test, with a NUL character:  " "
-.
-QUIT
-"
-(SMTPUTF8=1; export SMTPUTF8
-test_post "${testname}.actual" "${testname}.expected")
-
-
 finish_test
 exit ${failed:-0}