]> git.phdru.name Git - mimedecode.git/commitdiff
Add a test for option -i
authorOleg Broytman <phd@phdru.name>
Wed, 19 Feb 2014 13:04:31 +0000 (17:04 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 19 Feb 2014 13:04:31 +0000 (17:04 +0400)
test/expected/msg_15-2.txt [new file with mode: 0644]
test/test_all

diff --git a/test/expected/msg_15-2.txt b/test/expected/msg_15-2.txt
new file mode 100644 (file)
index 0000000..eb05c7e
--- /dev/null
@@ -0,0 +1,51 @@
+From test Sat Feb  1 00:00:00 2014
+Return-Path: <xx@xx.dk>
+Received: from fepD.post.tele.dk (195.41.46.149) by mail.groupcare.dk (LSMTP for Windows NT v1.1b) with SMTP id <0.0014F8A2@mail.groupcare.dk>; Mon, 30 Apr 2001 12:17:50 +0200
+User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2106
+Subject: XX
+From: xx@xx.dk
+To: XX
+Message-ID: <xxxx>
+Mime-version: 1.0
+Content-type: multipart/mixed;
+   boundary="MS_Mac_OE_3071477847_720252_MIME_Part"
+
+> Denne meddelelse er i MIME-format. Da dit postl
+
+--MS_Mac_OE_3071477847_720252_MIME_Part
+Content-type: multipart/alternative;
+   boundary="MS_Mac_OE_3071477847_720252_MIME_Part"
+
+
+
+--MS_Mac_OE_3071477847_720252_MIME_Part
+Content-transfer-encoding: 8bit
+X-MIME-Autoconverted: from quoted-printable to 8bit by test id mimedecode.py
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+X-MIME-Autoconverted: from iso-8859-1 to utf-8 by test id mimedecode.py
+
+Some removed test. 
+
+--MS_Mac_OE_3071477847_720252_MIME_Part
+Content-type: text/html; charset="ISO-8859-1"
+Content-transfer-encoding: 8bit
+X-MIME-Autoconverted: from quoted-printable to 8bit by test id mimedecode.py
+
+
+Message body of type `text/html' skipped.
+
+--MS_Mac_OE_3071477847_720252_MIME_Part--
+
+
+--MS_Mac_OE_3071477847_720252_MIME_Part
+Content-type: image/gif; name="xx.gif";
+ x-mac-creator="6F676C65";
+ x-mac-type="47494666"
+Content-disposition: attachment
+Content-transfer-encoding: base64
+
+Some removed base64 encoded chars.
+
+--MS_Mac_OE_3071477847_720252_MIME_Part--
+
index 300578eeb1d34c89df7772fb0893e3a7d6e0fcae..3de6ec74fb0daf91ff740250d7d3a1c261693640 100755 (executable)
@@ -40,6 +40,7 @@ for f in input/*.txt; do
 done
 
 test_file msg_15.txt msg_15-1.txt -b text/html
+test_file msg_15.txt msg_15-2.txt -i text/html
 
 if [ "$RC" -eq 0 ]; then
    echo "All tests passed!"