summaryrefslogtreecommitdiffstats
path: root/mutt.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-03-01 18:19:08 -0800
committerKevin McCarthy <kevin@8t8.us>2021-03-02 19:10:13 -0800
commit16c381d890a6f3934aa5d5b2a109fb16cb56725a (patch)
treebf1ee4f8a6d49d9cbb018a7a53ab1f7196472ef7 /mutt.h
parentad14641ef987df0e9cd4f462f3ddb97967d3ed12 (diff)
Prompt for retry on decrypt failure for mime message attachments.
Closes #331. Change $forward_decyrpt to a quadoption, defaulting 'yes' for backward compatibility. This will allow users to choose on a per-message attachment basis if desired. If decoding from $mime_forward_decode fails or decrypting from $forward_decrypt, notify the user and prompt to retry attaching without the decode/decrypt. $forward_decrypt directly invokes decryption and returns -1 on error, while $mime_forward_decode uses the handler rendering, which returns a non-fatal 1 (to allow message display of failing encrypted message). So prompt on either case. If they decline to retry, or the retry fails, return NULL only on a hard-fail (-1) return code. They've been warned and can peek at the final result. The send generate_body() code was not checking for a NULL result. This seems like a bad idea, so add a check and error message in that case.
Diffstat (limited to 'mutt.h')
-rw-r--r--mutt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt.h b/mutt.h
index 273c9709..257e4289 100644
--- a/mutt.h
+++ b/mutt.h
@@ -318,6 +318,7 @@ enum
OPT_DELETE,
OPT_FORWATTS,
OPT_FORWEDIT,
+ OPT_FORWDECRYPT,
OPT_FCCATTACH,
OPT_INCLUDE,
OPT_MFUPTO,
@@ -602,7 +603,6 @@ enum
OPTPGPRETAINABLESIG,
OPTPGPSELFENCRYPT,
OPTPGPSTRICTENC,
- OPTFORWDECRYPT,
OPTPGPSHOWUNUSABLE,
OPTPGPAUTOINLINE,
OPTPGPREPLYINLINE,