summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-07 11:47:26 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-07 11:47:26 +0000
commit12004c0e7a91721f115d52f449adff93d030b2a4 (patch)
tree88315b3c2ed58cd491bffb4739f7242677a5be94 /curs_main.c
parent5ee262734e576feaa5ceaad562e27c95fc2e4eee (diff)
Introducing decrypt-save, decrypt-copy, and
$forw{ard,}-decrypt. Based on work by Emil Laurentiu.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/curs_main.c b/curs_main.c
index 0f69764b..2fcad670 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -1065,13 +1065,28 @@ int mutt_index_menu (int attach_msg /* invoked while attaching a message */)
case OP_SAVE:
case OP_DECODE_COPY:
case OP_DECODE_SAVE:
-
+#ifdef _PGPPATH
+ case OP_DECRYPT_COPY:
+ case OP_DECRYPT_SAVE:
+#endif
CHECK_MSGCOUNT;
- if (mutt_save_message (tag ? NULL : CURHDR,
- (op == OP_SAVE || op == OP_DECODE_SAVE),
- (op == OP_DECODE_SAVE || op == OP_DECODE_COPY),
+ if (mutt_save_message (tag ? NULL : CURHDR,
+#ifdef _PGPPATH
+ (op == OP_DECRYPT_SAVE) ||
+#endif
+ (op == OP_SAVE) || (op == OP_DECODE_SAVE),
+ (op == OP_DECODE_SAVE) || (op == OP_DECODE_COPY),
+#ifdef _PGPPATH
+ (op == OP_DECRYPT_SAVE) || (op == OP_DECRYPT_COPY),
+#else
+ 0,
+#endif
&menu->redraw) == 0 &&
- (op == OP_SAVE || op == OP_DECODE_SAVE))
+ (op == OP_SAVE || op == OP_DECODE_SAVE
+#ifdef _PGPPATH
+ || op == OP_DECRYPT_SAVE
+#endif
+ ))
{
if (tag)
menu->redraw |= REDRAW_INDEX;