]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
crypto: add --decrypt=nostash to avoid stashing session keys
[notmuch] / notmuch-show.c
index c8f5a48f78312744505e4637683a1a5fdeab6377..4e22424bb713cb03ae00f0710a3af838089b0e87 100644 (file)
@@ -1121,7 +1121,8 @@ notmuch_show_command (notmuch_config_t *config, int argc, char *argv[])
 
     if (decrypt_set) {
        if (decrypt) {
-           params.crypto.decrypt = NOTMUCH_DECRYPT_TRUE;
+           /* we do not need or want to ask for session keys */
+           params.crypto.decrypt = NOTMUCH_DECRYPT_NOSTASH;
            /* decryption implies verification */
            params.crypto.verify = true;
        } else {