summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6b073f7)
actually. One is a simple bug fix, the other restricts concatenation
to text/plain, not just text, parts.
printf 'Local-Mailbox: recipient@example.com' >>"$MH"
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
cat >"$expected" <<'EOF'
From: recipient@example.com
To: sender@example.com
LC_ALL=en_US.UTF-8; export LC_ALL
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
cat >"$expected" <<'EOF'
From: recipient@example.com
To: sender@example.com
sender@example.com writes:
sender@example.com writes:
EOF
cat >`mhpath new` <<'EOF'
EOF
cat >`mhpath new` <<'EOF'
--_002_
Content-Type: text/plain
--_002_
Content-Type: text/plain
part->mp_part->c_ctinfo.ci_subtype, NULL);
if (part->mp_part->c_type == CT_MULTIPART) {
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;
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 &&
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. */
*text_plain_ct = m->mp_parts->mp_part;
/* Make sure that the charset is set in the text/plain
part. */