summaryrefslogtreecommitdiff
path: root/pith/reply.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-06-27 11:54:12 -0600
committerEduardo Chappa <chappa@washington.edu>2018-06-27 11:54:12 -0600
commit5d1f76edbfa357181f1a8662aa990c8b3e89f775 (patch)
tree9aa23e4c2379dff55ac63d549714b5489764c537 /pith/reply.c
parentb26daed8090cd71b90c390254d5ec4d790ab6fbf (diff)
downloadalpine-5d1f76edbfa357181f1a8662aa990c8b3e89f775.tar.xz
* Add a similar modification to include the message from a
multipart/mixed message that contain a signed part.
Diffstat (limited to 'pith/reply.c')
-rw-r--r--pith/reply.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pith/reply.c b/pith/reply.c
index 0fb8199e..4963a5d3 100644
--- a/pith/reply.c
+++ b/pith/reply.c
@@ -1089,7 +1089,11 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body,
&& orig_body->nested.part
&& orig_body->nested.part->body.type == TYPEMULTIPART
&& orig_body->nested.part->body.subtype
- && !strucmp(orig_body->nested.part->body.subtype, "signed")){
+ && (!strucmp(orig_body->nested.part->body.subtype, "signed")
+#ifdef SMIME
+ || !strucmp(orig_body->nested.part->body.subtype, OUR_PKCS7_ENCLOSURE_SUBTYPE)
+#endif /* SMIME */
+ )){
/* we can call reply_body as in the call above with section
* equal to "1", but that adds the multipart text to the
* list of attachments. We do not want that, so we redo this