From 56a5f74f59620a8113db86467edaf589a4038119 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 22 Sep 2015 19:47:51 -0600 Subject: * SMIME: Turn off automatic signing and encrypting of a message when bouncing. Suggested after a discussion with Matthias Rieber. --- alpine/mailcmd.c | 10 ++++++++++ pith/pine.hlp | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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) diff --git a/pith/pine.hlp b/pith/pine.hlp index 79de8e6b..fb087142 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 105 2015-09-20 19:20:48 +Alpine Commit 106 2015-09-22 19:46:50 ============= h_news ================= @@ -280,6 +280,9 @@ Additions include: scroll through the history of directories used to save attachments, while preserving the given name of the file. Suggested by Peter Koellner. + +
  • SMIME: Turn off automatic signing and encrypting of a message when + bouncing. Suggested after a discussion with Matthias Rieber. -- cgit v1.2.3-70-g09d2