{
struct Buffy *tmp = Incoming;
+ init_state(state, menu);
+
if (!Incoming)
return -1;
mutt_buffy_check(false);
- init_state(state, menu);
-
do
{
if (Context && (mutt_strcmp(tmp->realpath, Context->realpath) == 0))
#endif
if (buffy)
{
- if (examine_mailboxes(NULL, &state) == -1)
- goto bail;
+ examine_mailboxes (NULL, &state);
}
else
#ifdef USE_IMAP
if (buffy)
{
- if (examine_mailboxes(menu, &state) == -1)
- goto bail;
+ examine_mailboxes (menu, &state);
}
#ifdef USE_IMAP
else if (mx_is_imap(LastDir))
{
mutt_refresh();
buf[0] = 0;
- if (!flags)
- flags = MUTT_SEL_FOLDER | (multiple ? MUTT_SEL_MULTI : 0);
-
- _mutt_select_file(buf, blen, flags, files, numfiles);
+ flags = MUTT_SEL_FOLDER;
+ if (multiple)
+ flags |= MUTT_SEL_MULTI;
+ if (buffy)
+ flags |= MUTT_SEL_BUFFY;
+ _mutt_select_file (buf, blen, flags, files, numfiles);
}
else
{
macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation"
# show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
-macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
+macro index,pager y "<change-folder>?" "show incoming mailboxes list"
bind browser y exit
# Handler for gzip compressed mailboxes