From a4596ef9de75a309535e00c1da775c9b39dc3769 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 26 Jun 2018 12:55:51 -0600 Subject: * Many mail programs might include attachments in an alternative html part. In this case, these attachments are not included in a reply, even if the option "Include Attachments in Reply" is enabled. We include these attachments in a reply too in this case (experimental.) --- pith/reply.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pith/reply.c') diff --git a/pith/reply.c b/pith/reply.c index 398ee63d..dbeccc20 100644 --- a/pith/reply.c +++ b/pith/reply.c @@ -1080,6 +1080,16 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body, msgno, section, msgtext, prefix, plustext, role, 0, redraft_pos); } + else if(orig_body->subtype + && !strucmp(orig_body->subtype, "alternative") + && orig_body->nested.part + && orig_body->nested.part->next->body.type == TYPEMULTIPART + && orig_body->nested.part->next->body.subtype + && !strucmp(orig_body->nested.part->next->body.subtype, "MIXED")) + body = reply_body(stream, env, + &orig_body->nested.part->next->body, + msgno, "2", msgtext, prefix, + plustext, role, 0, redraft_pos); else if(orig_body->subtype && !strucmp(orig_body->subtype, "alternative")){ /* Set up the simple text reply */ -- cgit v1.2.3-54-g00ecf