printf 'Local-Mailbox: recipient@example.com' >>"$MH"
-# check -convertarg with multiple parts and no additional text in draft
+# check -convertarg with multiple parts and additional text in draft
cat >"$expected" <<'EOF'
From: recipient@example.com
To: sender@example.com
LC_ALL=en_US.UTF-8; export LC_ALL
-# check -convertarg with multiple parts and additional text in draft
+# check -convertarg with multiple parts and no additional text in draft
cat >"$expected" <<'EOF'
From: recipient@example.com
To: sender@example.com
sender@example.com writes:
+> This is a test.
EOF
cat >`mhpath new` <<'EOF'
--_002_
Content-Type: text/plain
-
+This is a test.
--_002_--
part->mp_part->c_ctinfo.ci_subtype, NULL);
if (part->mp_part->c_type == CT_MULTIPART) {
- expand_pseudoheaders (part->mp_part, mp, infile,
+ expand_pseudoheaders (part->mp_part, m, infile,
convert_head);
} else {
const convert_list *c;
if (reply_ct->c_type == CT_TEXT &&
reply_ct->c_subtype == TEXT_PLAIN) {
if (! *text_plain_ct && m->mp_parts && m->mp_parts->mp_part &&
- m->mp_parts->mp_part->c_type == CT_TEXT) {
+ m->mp_parts->mp_part->c_type == CT_TEXT &&
+ m->mp_parts->mp_part->c_subtype == TEXT_PLAIN) {
*text_plain_ct = m->mp_parts->mp_part;
/* Make sure that the charset is set in the text/plain
part. */