#Test if MIME convertion work . "$MH_TEST_COMMON" draft="$MH_TEST_DIR/send-$$.draft" profile="$MMH/profile-send" cd "$MMH" cat "`mhparam profile`" - >"$profile" < ! cd - >/dev/null export MMHP="$profile" cat >"$draft" < To: alice Date: Sun, 25 Oct 2015 18:59:56 +0100 Subject: Test MIME ---------------- foo ! runandcheck 'send -debug "$draft" | sed "/^Content-ID/s/:.*/: /"' < To: alice Date: Sun, 25 Oct 2015 18:59:56 +0100 Subject: Test MIME MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: foo ----EOM---- alice ! cat >"$draft" < To: alice Date: Sun, 25 Oct 2015 18:59:56 +0100 Subject: Test MIME MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: ---------------- foo ! runandcheck 'send -debug "$draft"' < To: alice Date: Sun, 25 Oct 2015 18:59:56 +0100 Subject: Test MIME MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: 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"