summaryrefslogtreecommitdiff
path: root/pith/reply.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-06-26 12:55:51 -0600
committerEduardo Chappa <chappa@washington.edu>2018-06-26 12:55:51 -0600
commita4596ef9de75a309535e00c1da775c9b39dc3769 (patch)
tree8d44535e64ee5b803e97292e851d752f57ae6d28 /pith/reply.c
parentd3e6f3932f2af9deca8eed09e30a55e9bd524362 (diff)
downloadalpine-a4596ef9de75a309535e00c1da775c9b39dc3769.tar.xz
* 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.)
Diffstat (limited to 'pith/reply.c')
-rw-r--r--pith/reply.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pith/reply.c b/pith/reply.c
index 398ee63d..dbeccc20 100644
--- a/pith/reply.c
+++ b/pith/reply.c
@@ -1081,6 +1081,16 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body,
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 */
body = mail_newbody();