X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/95a485d2b8a2bf28fdb80ca62c12d0541ac0a2fc..628b193daced4357675de5127ff8129cf6f81b0f:/test/mhbuild/test-cte?ds=inline diff --git a/test/mhbuild/test-cte b/test/mhbuild/test-cte index e3f151a5..517fbc51 100755 --- a/test/mhbuild/test-cte +++ b/test/mhbuild/test-cte @@ -45,6 +45,57 @@ Content-Transfer-Encoding: quoted-printable This is a test of a message with a sh=C3=B8rt line. EOF +# +# Force some text to be base64, to test out the encoder. Try at different +# line lengths to check out the padding on the +# + +cat > "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtZXNzYWdlIHdpdGggYSBzaMO4cnQgbGluZS4NCg== +EOF + +check "$draft" "$expected" + +cat > "$draft" < +cc: +Fcc: +outbox +------ +# "$expected" < +cc: +Fcc: +outbox +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" +Content-Transfer-Encoding: base64 + +VGhpcyBpcyBhIHRlc3Qgb2YgYSBtw6tzc2FnZSB3aXRoIGEgc2jDuHJ0IGxpbmUuDQo= +EOF + check "$draft" "$expected" exit ${failed:-0}