From: Kevin McCarthy Date: Wed, 7 Aug 2019 21:31:53 +0000 (-0700) Subject: Add $autocrypt_reply X-Git-Tag: 2019-10-25~97^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f24a9cb64044f29ad37578db97a6d2a3d5884a9;p=neomutt Add $autocrypt_reply This allows turning off the force-autocrypt mode when replying to an autocrypt email. Co-authored-by: Richard Russon --- diff --git a/globals.h b/globals.h index b46684f73..b7ea86d4d 100644 --- a/globals.h +++ b/globals.h @@ -207,6 +207,7 @@ WHERE bool C_Askbcc; ///< Config: Ask the user for the b WHERE bool C_Askcc; ///< Config: Ask the user for the carbon-copy recipients #ifdef USE_AUTOCRYPT WHERE bool C_Autocrypt; ///< Config: Enables the Autocrypt feature +WHERE bool C_AutocryptReply; ///< Config: Replying to an autocrypt email automatically enables autocrypt in the reply #endif WHERE bool C_Autoedit; ///< Config: Skip the initial compose menu and edit the email WHERE bool C_AutoTag; ///< Config: Automatically apply actions to all tagged messages diff --git a/init.h b/init.h index d4191a99b..57635c785 100644 --- a/init.h +++ b/init.h @@ -421,6 +421,15 @@ struct ConfigDef MuttVars[] = { ** keyring and sqlite database. See ``$autocryptdoc'' for more details. ** (Autocrypt only) */ + { "autocrypt_reply", DT_BOOL, &C_AutocryptReply, true }, + /* + ** .pp + ** When \fIset\fP, replying to an autocrypt email automatically + ** enables autocrypt in the reply. You may want to unset this if you're using + ** the same key for autocrypt as normal web-of-trust, so that autocrypt + ** isn't forced on for all encrypted replies. + ** (Autocrypt only) + */ #endif { "autoedit", DT_BOOL, &C_Autoedit, false }, /* diff --git a/send.c b/send.c index 495492685..a2d5563a6 100644 --- a/send.c +++ b/send.c @@ -2248,7 +2248,7 @@ int ci_send_message(SendFlags flags, struct Email *e_templ, const char *tempfile { if ( #ifdef USE_AUTOCRYPT - C_Autocrypt + C_Autocrypt && C_AutocryptReply #else 0 #endif