# test mhbuild linebreak for quoted-printable

. "$MH_TEST_COMMON"


draft="$MH_TEST_DIR/mhbuild-$$.draft"

cat >"$draft" <<!
From: meillo
To: meillo
Date: Thursday, 28 Sep 2006 00:02:00
Subject: mhbuild line breaking with quoted-printable
----------------
Füße  <-- to ensure quoted-printable is used

         1         2         3         4         5         6         7
1234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345

1234567890123456789012345678901234567890123456789012345678901234567890123.
12345678901234567890123456789012345678901234567890123456789012345678901234.
123456789012345678901234567890123456789012345678901234567890123456789012345.
1234567890123456789012345678901234567890123456789012345678901234567890123456.

12345678901234567890123456789012345678901234567890123456789012345678901234.xx
123456789012345678901234567890123456789012345678901234567890123456789012345.xx
1234567890123456789012345678901234567890123456789012345678901234567890123456.xx

12345678901234567890123456789012345678901234567890123456789012345678901234..yy
123456789012345678901234567890123456789012345678901234567890123456789012345..yy
1234567890123456789012345678901234567890123456789012345678901234567890123456..yy
!



runandcheck 'mhbuild "$draft"' <<!
!

runandcheck 'sed "/^Content-ID:/s/:.*/: <TESTID>/" "$draft"' <<!
From: meillo
To: meillo
Date: Thursday, 28 Sep 2006 00:02:00
Subject: mhbuild line breaking with quoted-printable
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-ID: <TESTID>
Content-Transfer-Encoding: quoted-printable

F=C3=BC=C3=9Fe  <-- to ensure quoted-printable is used

         1         2         3         4         5         6         7
1234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012345

1234567890123456789012345678901234567890123456789012345678901234567890123.
12345678901234567890123456789012345678901234567890123456789012345678901234.
123456789012345678901234567890123456789012345678901234567890123456789012345=
=2E
123456789012345678901234567890123456789012345678901234567890123456789012345=
6.

12345678901234567890123456789012345678901234567890123456789012345678901234.=
xx
123456789012345678901234567890123456789012345678901234567890123456789012345=
=2Exx
123456789012345678901234567890123456789012345678901234567890123456789012345=
6.xx

12345678901234567890123456789012345678901234567890123456789012345678901234.=
=2Eyy
123456789012345678901234567890123456789012345678901234567890123456789012345=
=2E.yy
123456789012345678901234567890123456789012345678901234567890123456789012345=
6..yy
!
