]> granicus.if.org Git - neomutt/commitdiff
Enabled writing protected subject with autocrypt too
authorKevin McCarthy <kevin@8t8.us>
Thu, 8 Aug 2019 16:18:53 +0000 (09:18 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 19 Aug 2019 23:14:28 +0000 (00:14 +0100)
Co-authored-by: Richard Russon <rich@flatcap.org>
ncrypt/crypt.c

index 3037dc39943a5fbd7642204bf169fb4b6e500e04..83df4a562d06feef6bc5aa9c3cc11b45e64c1f5a 100644 (file)
@@ -1081,7 +1081,7 @@ static void crypt_fetch_signatures(struct Body ***signatures, struct Body *a, in
  */
 bool mutt_should_hide_protected_subject(struct Email *e)
 {
-  if (C_CryptProtectedHeadersWrite && (e->security & SEC_ENCRYPT) &&
+  if (C_CryptProtectedHeadersWrite && (e->security & (SEC_ENCRYPT | SEC_AUTOCRYPT)) &&
       !(e->security & SEC_INLINE) && C_CryptProtectedHeadersSubject)
   {
     return true;