diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-09-22 19:47:51 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-09-22 19:47:51 -0600 |
commit | 56a5f74f59620a8113db86467edaf589a4038119 (patch) | |
tree | bb8aa545050a383a28bfa77d9a5bdcabdd86600f /alpine/mailcmd.c | |
parent | 23e421e7262fd5f7be2a68648234cf44eea1e289 (diff) | |
download | alpine-56a5f74f59620a8113db86467edaf589a4038119.tar.xz |
* SMIME: Turn off automatic signing and encrypting of a message when
bouncing. Suggested after a discussion with Matthias Rieber.
Diffstat (limited to 'alpine/mailcmd.c')
-rw-r--r-- | alpine/mailcmd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/alpine/mailcmd.c b/alpine/mailcmd.c index f066c898..e134e8dc 100644 --- a/alpine/mailcmd.c +++ b/alpine/mailcmd.c @@ -2419,6 +2419,16 @@ cmd_bounce(struct pine *state, MSGNO_S *msgmap, int aopt) } } +#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 */ + rv = bounce(state, role); if(role) |