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/pine.hlp | 2 +- pith/reply.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'pith') diff --git a/pith/pine.hlp b/pith/pine.hlp index a8cdb89a..87ac8032 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -2011,7 +2011,7 @@ on Alpine configuration.

  • The main site for Alpine contains information on configuring and solving problems with Alpine, it can be found at -
    http://alpine.freeiz.com/alpine/
    +
    http://alpine.x10host.com/alpine/
    -->
  • The Alpine Information Center (maintained by the University of Washington) World Wide Web site contains, among other things 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-70-g09d2