]> git.notmuchmail.org Git - notmuch/blobdiff - lib/indexopts.c
crypto: add --decrypt=nostash to avoid stashing session keys
[notmuch] / lib / indexopts.c
index 26a31e8926103c780e4422f7734e1b9868900cf4..b78a57b6840996d524e1cdcc9fade0609876f5d2 100644 (file)
@@ -42,6 +42,8 @@ notmuch_database_get_default_indexopts (notmuch_database_t *db)
                 (!(strcasecmp(decrypt_policy, "no"))) ||
                 (!(strcasecmp(decrypt_policy, "0"))))
            notmuch_indexopts_set_decrypt_policy (ret, NOTMUCH_DECRYPT_FALSE);
+       else if (!strcasecmp(decrypt_policy, "nostash"))
+           notmuch_indexopts_set_decrypt_policy (ret, NOTMUCH_DECRYPT_NOSTASH);
     }
 
     free (decrypt_policy);