summaryrefslogtreecommitdiff
path: root/pith/reply.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2017-11-10 19:55:54 -0700
committerEduardo Chappa <chappa@washington.edu>2017-11-10 19:55:54 -0700
commit6c79de9847d04e40dea488d1dd919b72075c552a (patch)
tree856486979120f83dd9dd0dc862485d00922049da /pith/reply.c
parentf77dcb38620a334fffbd8153605f7943107dd28e (diff)
downloadalpine-6c79de9847d04e40dea488d1dd919b72075c552a.tar.xz
* If the first part of a message is multipart/alternative, and the
first part of this is also a multipart type, then Alpine might fail to select the first text part when replying to a message. Reported by Lucio Chiappetti.
Diffstat (limited to 'pith/reply.c')
-rw-r--r--pith/reply.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pith/reply.c b/pith/reply.c
index 58b10b27..4c0a6f44 100644
--- a/pith/reply.c
+++ b/pith/reply.c
@@ -1296,6 +1296,10 @@ reply_body_text(struct mail_bodystruct *body, struct mail_bodystruct **new_body)
PART *part;
int got_one = 0;
+ if((part = body->nested.part) != NULL
+ && part->body.type == TYPEMULTIPART)
+ return reply_body_text(&body->nested.part->body, new_body);
+
if(ps_global->force_prefer_plain
|| (!ps_global->force_no_prefer_plain
&& F_ON(F_PREFER_PLAIN_TEXT, ps_global))){