From 956b33ea526def9ef1532dec2d8ff4964cca25f4 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 23 Nov 1999 10:13:17 +0000 Subject: [PATCH] Adding an fcc_clear option for unencrypted and unsigned FCCs. --- init.h | 8 ++++++++ mutt.h | 1 + send.c | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/init.h b/init.h index c672908a8..df3b9f916 100644 --- a/init.h +++ b/init.h @@ -431,6 +431,14 @@ struct option_t MuttVars[] = { ** This variable controls whether or not attachments on outgoing messages ** are saved along with the main body of your message. */ +#ifdef _PGPPATH + { "fcc_clear", DT_BOOL, R_NONE, OPTFCCCLEAR, 0 }, + /* + ** .pp + ** When this variable is \fIset\fP, FCCs will be stored unencrypted and + ** unsigned, even when the actual message is encrypted and/or signed. + */ +#endif { "folder", DT_PATH, R_NONE, UL &Maildir, UL "~/Mail" }, /* ** .pp diff --git a/mutt.h b/mutt.h index a629076cd..b72a7cb1f 100644 --- a/mutt.h +++ b/mutt.h @@ -286,6 +286,7 @@ enum OPTENCODEFROM, OPTFASTREPLY, OPTFCCATTACH, + OPTFCCCLEAR, OPTFOLLOWUPTO, OPTFORCENAME, OPTFORWDECODE, diff --git a/send.c b/send.c index 4d880cc11..b9de93f27 100644 --- a/send.c +++ b/send.c @@ -1350,6 +1350,11 @@ main_loop: BODY *save_parts = NULL; #endif /* _PGPPATH */ +#ifdef _PGPPATH + if (msg->pgp && option (OPTFCCCLEAR)) + msg->content = clear_content; +#endif + /* check to see if the user wants copies of all attachments */ if (!option (OPTFCCATTACH) && msg->content->type == TYPEMULTIPART) { -- 2.40.0