]> diplodocus.org Git - nmh/blobdiff - test/mhmail/test-mhmail
Use ToLower() instead of loop.
[nmh] / test / mhmail / test-mhmail
index 4d127e4e603d725f4a5dc63dd0b1794152c27f14..2e7375f0b6e087f9e9dae3542bdcd99bdca86c00 100755 (executable)
@@ -89,7 +89,7 @@ Usage: mhmail [-t(o)] addrs ... [switches]
 EOF
 
 #### Skip nmh intro text.
 EOF
 
 #### Skip nmh intro text.
-mhmail -help | sed '/^$/Q' >"$actual" 2>&1
+mhmail -help | sed '/^$/,$d' >"$actual" 2>&1
 check "$expected" "$actual"
 
 
 check "$expected" "$actual"
 
 
@@ -772,7 +772,7 @@ To: recipient@example.com
 From: sender27@example.com
 MIME-Version: 1.0
 Content-Type: text/plain;charset=utf-8
 From: sender27@example.com
 MIME-Version: 1.0
 Content-Type: text/plain;charset=utf-8
-Content-Transfer-Encoding: 8bit
+Content-Transfer-Encoding: 7bit
 Date:
 
 with added header fields
 Date:
 
 with added header fields
@@ -783,7 +783,7 @@ EOF
 test_mhmail "$expected" \
   "-from sender27@example.com -headerfield MIME-Version:1.0 \
 -headerfield Content-Type:text/plain;charset=utf-8 \
 test_mhmail "$expected" \
   "-from sender27@example.com -headerfield MIME-Version:1.0 \
 -headerfield Content-Type:text/plain;charset=utf-8 \
--headerfield Content-Transfer-Encoding:8bit" \
+-headerfield Content-Transfer-Encoding:7bit" \
   -b 'with added header fields'
 
 [ ${failed:-0} -eq 0 ] || exit ${failed:-0}
   -b 'with added header fields'
 
 [ ${failed:-0} -eq 0 ] || exit ${failed:-0}