summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-05-11 14:15:27 -0700
committerKevin McCarthy <kevin@8t8.us>2020-05-11 14:15:27 -0700
commitb0570d76c97135dd38a4cde8262792f7a763cfba (patch)
tree9086cc47a51f65fac59ec84fa2df14043b67002e /commands.c
parentd338650ff662d308a1a99b902b4bf9ac93a14685 (diff)
Separate mailbox vs buffy-incoming for the "enter_fname" functions.
Create mutt_buffer_enter_mailbox(), which turns on the MUTT_MAILBOX flag (renamed from MUTT_EFILE). This uses the mailbox history file category, and turns on MUTT_SEL_FOLDER in the select_file browser. Add a do_incoming paramter and a new separate flag MUTT_INCOMING, so that buffy-completion can be enabled optionally for mailboxes. It only makes sense for the change-folder operation, so disable it in other contexts (such as saving/copying a message, prompting for an Fcc mailbox, or an autocrypt scan mailbox). Change saving/copying a message to use the mailbox function, so that it shares the history file with other mailbox operations. It would previously use the "file" history category. Create mutt_buffer_enter_filenames() to replace the enter_fname() prompt for files. Since nothing directly uses the _mutt_buffer_enter_fname() function anymore, rename and make it static.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 08c767e7..7864f1a6 100644
--- a/commands.c
+++ b/commands.c
@@ -932,7 +932,7 @@ int mutt_save_message (HEADER *h, int delete, int decode, int decrypt)
}
mutt_buffer_pretty_mailbox (buf);
- if (mutt_buffer_enter_fname (prompt, buf, 0) == -1)
+ if (mutt_buffer_enter_mailbox (prompt, buf, 0) == -1)
goto cleanup;
if (!mutt_buffer_len (buf))
goto cleanup;