From: markus schnalke Date: Wed, 10 Aug 2016 17:25:53 +0000 (+0200) Subject: Add more tests to tests/test-send-mimeify X-Git-Tag: mmh-0.3~9 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=fa3da68dfa43341a8b6722d2e8a787c14cef02b9 Add more tests to tests/test-send-mimeify --- diff --git a/test/tests/send/amphioctopus-marginatus.png b/test/tests/send/amphioctopus-marginatus.png new file mode 100644 index 0000000..d667640 Binary files /dev/null and b/test/tests/send/amphioctopus-marginatus.png differ diff --git a/test/tests/send/test-mimeify b/test/tests/send/test-mimeify index 96e2418..9530f2b 100644 --- a/test/tests/send/test-mimeify +++ b/test/tests/send/test-mimeify @@ -60,3 +60,247 @@ foo ----EOM---- alice ! + + +cat >"$draft" </"' < +From: Bob + +foo +----EOM---- +meillo +! + +cat >"$draft" </"' < +Content-Transfer-Encoding: quoted-printable +From: Bob + +foo +f=C3=BC=C3=9Fe +----EOM---- +meillo +! + +cat >"$draft" </"' < + +foo +----EOM---- +meillo +! + +cat >"$draft" <füße +! +runandcheck 'send -debug "$draft"' < + +füße +----EOM---- +meillo +! + +cat >"$draft" < + +füße +----EOM---- +meillo +! + + +# now something more complex with separate call to mhbuild(1) + +cat >"$draft" <bar +#text/plain tests/send/ulm.txt +Käse +#begin [Picture of an Amphioctopus marginatus] alternative +#image/png tests/send/amphioctopus-marginatus.png +Amphioctopus marginatus sitting in its portable home +composed of coconut shell pieces. +#end +end +! +runandcheck 'mhbuild "$draft"' </"' < +From: Bob + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +foo + +------- =_aaaaaaaaaa0 +Content-Type: text/html; charset="us-ascii" +Content-ID: + +bar + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +in ulm und um ulm und um ulm herum + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="UTF-8" +Content-ID: +Content-Transfer-Encoding: quoted-printable + +K=C3=A4se + +------- =_aaaaaaaaaa0 +Content-Type: multipart/alternative; boundary="----- =_aaaaaaaaaa1" +Content-ID: +Content-Description: Picture of an Amphioctopus marginatus + +------- =_aaaaaaaaaa1 +Content-Type: image/png +Content-ID: +Content-Transfer-Encoding: base64 + +iVBORw0KGgoAAAANSUhEUgAAADIAAAArBAMAAADIyMbRAAAABGdBTUEAALGPC/xhBQAAAAFzUkdC +AK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADBQTFRF +NSswLygsMycvCwcEKBwThW21iHWuSDhEnZG1b1icUjWPkXXINCBcrp7PzsPhjXtoqrnPvAAAAAx0 +Uk5TAS5a/flp/tv9/vz8kbJyBAAAAAlwSFlzAAALiQAAC4kBN8nLrQAAAAl2cEFnAAAAlgAAACsA +qJ21PgAAAlhJREFUOMu9kz9o20AUxpU60NXQNYOHlkDI4OaudOkQcpeKemlwIVDqoUtVqa0hg8F1 +KXQL50FOl4ieFAgUHJCsOeAcyZAQaEzGYmSM1NWlWGMcQ+F6lhw7drO2b9Cf99N337v3TpL0z2Im +dUMyIUkpafX1DWhpZU4vGvnvfwEM5L2gy1WyMQ0w/v3ND7kevJwywahUzpg+53xjWvLQKB9/tDjv +f56UyPiJelDNNXa5PymBRbRuNd13DdrfngCzGEObqjtuQyVrUnKyMGzu6fVzJ0+ys9kxSggg21ab +OXbe67dfrQ3QTFpcbuG7OGNQxlQShEHo/byYTd7mkT9CMGPX/bavd8NOZcvQva/vtyKCIfpgsKOw +o+thePlDVT3NL0Q2BQRzFmPBJiFhxyNEI5wvx6Uh6FhvLV9RBSL+pvqF91DcMwBr+6zGtItLQipB +k/IeXo72CRE8q2s2o4qqV7rem6ogqUgDAFxkpmOZiii70irt9jBOx0MTGstxapqhEt/LzfeKeCVq +AcJg3lDMhiCEHTbxpyKObMR+ALinsabF6lRhQetprzBcTBK1PWjlw5CVbUqPSK8oYzwcghA9t4Lw +l2KbxuGucBHfxr0GCDy282HXpyZVqnJhQMBwCmhpnTK/rR1Qc1ssJkCMIERyyab7dcehTlZIwBVJ +QDG7F6bjnJ/abhbHkpgAgNHqgttwwZn77LpElDDo6vHiCWi4J2AEpCXxAON3sOCeRvf0VQ9GMWdW +RwpJugbAI6c6yguftEglktExA+c76ftjkhD/2/D43UmMFf8r/gD+qh1F0ZufSgAAACV0RVh0ZGF0 +ZTpjcmVhdGUAMjAxNi0wOC0xMFQxODo0MTo1NyswMjowMDnWAU8AAAAldEVYdGRhdGU6bW9kaWZ5 +ADIwMTYtMDgtMTBUMTg6NDE6NTcrMDI6MDBIi7nzAAAAAElFTkSuQmCC + +------- =_aaaaaaaaaa1 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +Amphioctopus marginatus sitting in its portable home +composed of coconut shell pieces. + +------- =_aaaaaaaaaa1-- + +------- =_aaaaaaaaaa0 +Content-Type: text/plain; charset="us-ascii" +Content-ID: + +end + +------- =_aaaaaaaaaa0-- +----EOM---- +meillo +! + +rm "$draft.orig" diff --git a/test/tests/send/ulm.txt b/test/tests/send/ulm.txt new file mode 100644 index 0000000..ddeb0d4 --- /dev/null +++ b/test/tests/send/ulm.txt @@ -0,0 +1 @@ +in ulm und um ulm und um ulm herum