diff options
author | Kevin McCarthy <kevin@8t8.us> | 2020-05-11 14:15:27 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-05-11 14:15:27 -0700 |
commit | b0570d76c97135dd38a4cde8262792f7a763cfba (patch) | |
tree | 9086cc47a51f65fac59ec84fa2df14043b67002e /autocrypt | |
parent | d338650ff662d308a1a99b902b4bf9ac93a14685 (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 'autocrypt')
-rw-r--r-- | autocrypt/autocrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autocrypt/autocrypt.c b/autocrypt/autocrypt.c index 628f0d46..d31529cc 100644 --- a/autocrypt/autocrypt.c +++ b/autocrypt/autocrypt.c @@ -836,7 +836,7 @@ void mutt_autocrypt_scan_mailboxes (void) /* L10N: The prompt for a mailbox to scan for Autocrypt: headers */ - if ((!mutt_buffer_enter_fname (_("Scan mailbox"), folderbuf, 1)) && + if ((!mutt_buffer_enter_mailbox (_("Scan mailbox"), folderbuf, 0)) && mutt_buffer_len (folderbuf)) { mutt_buffer_expand_path (folderbuf); |