Rework in the test framework; updated and new tests
[mmh] / test / tests / mhbuild / test-linebreak
1 # test mhbuild linebreak for quoted-printable
2
3 . "$MH_TEST_COMMON"
4
5
6 draft="$MH_TEST_DIR/mhbuild-$$.draft"
7
8 cat >"$draft" <<!
9 From: meillo
10 To: meillo
11 Date: Thursday, 28 Sep 2006 00:02:00
12 Subject: mhbuild line breaking with quoted-printable
13 ----------------
14 Füße  <-- to ensure quoted-printable is used
15
16          1         2         3         4         5         6         7
17 1234567890123456789012345678901234567890123456789012345678901234567890
18 123456789012345678901234567890123456789012345678901234567890123456789012345
19
20 1234567890123456789012345678901234567890123456789012345678901234567890123.
21 12345678901234567890123456789012345678901234567890123456789012345678901234.
22 123456789012345678901234567890123456789012345678901234567890123456789012345.
23 1234567890123456789012345678901234567890123456789012345678901234567890123456.
24
25 12345678901234567890123456789012345678901234567890123456789012345678901234.xx
26 123456789012345678901234567890123456789012345678901234567890123456789012345.xx
27 1234567890123456789012345678901234567890123456789012345678901234567890123456.xx
28
29 12345678901234567890123456789012345678901234567890123456789012345678901234..yy
30 123456789012345678901234567890123456789012345678901234567890123456789012345..yy
31 1234567890123456789012345678901234567890123456789012345678901234567890123456..yy
32 !
33
34
35
36 runandcheck 'mhbuild "$draft"' <<!
37 !
38
39 runandcheck 'sed "/^Content-ID:/s/:.*/: <TESTID>/" "$draft"' <<!
40 From: meillo
41 To: meillo
42 Date: Thursday, 28 Sep 2006 00:02:00
43 Subject: mhbuild line breaking with quoted-printable
44 MIME-Version: 1.0
45 Content-Type: text/plain; charset="UTF-8"
46 Content-ID: <TESTID>
47 Content-Transfer-Encoding: quoted-printable
48
49 F=C3=BC=C3=9Fe  <-- to ensure quoted-printable is used
50
51          1         2         3         4         5         6         7
52 1234567890123456789012345678901234567890123456789012345678901234567890
53 123456789012345678901234567890123456789012345678901234567890123456789012345
54
55 1234567890123456789012345678901234567890123456789012345678901234567890123.
56 12345678901234567890123456789012345678901234567890123456789012345678901234.
57 123456789012345678901234567890123456789012345678901234567890123456789012345=
58 =2E
59 123456789012345678901234567890123456789012345678901234567890123456789012345=
60 6.
61
62 12345678901234567890123456789012345678901234567890123456789012345678901234.=
63 xx
64 123456789012345678901234567890123456789012345678901234567890123456789012345=
65 =2Exx
66 123456789012345678901234567890123456789012345678901234567890123456789012345=
67 6.xx
68
69 12345678901234567890123456789012345678901234567890123456789012345678901234.=
70 =2Eyy
71 123456789012345678901234567890123456789012345678901234567890123456789012345=
72 =2E.yy
73 123456789012345678901234567890123456789012345678901234567890123456789012345=
74 6..yy
75 !