diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-09-13 13:27:32 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-09-13 13:27:32 -0600 |
commit | 745455f3cfdcee60ef87764eea5ec263e7eb350e (patch) | |
tree | 4d9af1d9a7684285ff31d7680fc3903454ff31de /alpine/reply.c | |
parent | 097b72cb06f448728280ed53e033a447ed7b46be (diff) | |
download | alpine-745455f3cfdcee60ef87764eea5ec263e7eb350e.tar.xz |
* New version 2.20.16
* SMIME: Bouncing could sign (and therefore corrupt) a message when it
is signed automatically. Reported by Björn Krellner.
Diffstat (limited to 'alpine/reply.c')
-rw-r--r-- | alpine/reply.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/alpine/reply.c b/alpine/reply.c index 61fd1ec9..1807b642 100644 --- a/alpine/reply.c +++ b/alpine/reply.c @@ -2048,6 +2048,16 @@ bounce_msg(MAILSTREAM *stream, BODY *body = NULL; MESSAGECACHE *mc; +#ifdef SMIME + /* When we bounce a message, we will leave the original message + * intact, which means that it will not be signed or encrypted, + * so we turn off signing and encrypting now. It will be turned + * on again in send_exit_for_pico(). + */ + if(ps_global->smime) + ps_global->smime->do_sign = ps_global->smime->do_encrypt = 0; +#endif /* SMIME */ + if((errstr = bounce_msg_body(stream, rawno, part, to, subject, &outgoing, &body, &was_seen)) == NULL){ if(pine_simple_send(outgoing, &body, &role, pmt_who, pmt_cnf, to, !(to && *to) ? SS_PROMPTFORTO : 0) < 0){ |