]> granicus.if.org Git - mutt/commitdiff
Sort browser entries after every IMAP browsing operation instead of just
authorBrendan Cully <brendan@kublai.com>
Thu, 6 Oct 2005 06:15:00 +0000 (06:15 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 6 Oct 2005 06:15:00 +0000 (06:15 +0000)
when explicitly requested. Closes: #2089.

browser.c

index d3676981682c282f5c98cf36d8f51d617442d6ca..bb709a86dce8f502c4993e7bea31f0d4114a5b32 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -613,6 +613,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
       init_state (&state, NULL);
       state.imap_browse = 1;
       imap_browse (LastDir, &state);
+      browser_sort (&state);
     }
 #endif
   }
@@ -757,6 +758,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
              init_state (&state, NULL);
              state.imap_browse = 1;
              imap_browse (LastDir, &state);
+             browser_sort (&state);
              menu->data = state.entry;
            }
            else
@@ -868,6 +870,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
          init_state (&state, NULL);
          state.imap_browse = 1;
          imap_browse (LastDir, &state);
+         browser_sort (&state);
          menu->data = state.entry;
          menu->current = 0; 
          menu->top = 0; 
@@ -888,6 +891,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
            init_state (&state, NULL);
            state.imap_browse = 1;
            imap_browse (LastDir, &state);
+           browser_sort (&state);
            menu->data = state.entry;
            menu->current = 0;
            menu->top = 0;
@@ -959,6 +963,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
            init_state (&state, NULL);
            state.imap_browse = 1;
            imap_browse (LastDir, &state);
+           browser_sort (&state);
            menu->data = state.entry;
            menu->current = 0; 
            menu->top = 0; 
@@ -1038,6 +1043,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
              init_state (&state, NULL);
              state.imap_browse = 1;
              imap_browse (LastDir, &state);
+             browser_sort (&state);
              menu->data = state.entry;
              init_menu (&state, menu, title, sizeof (title), buffy);
            }
@@ -1123,6 +1129,7 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
          init_state (&state, NULL);
          state.imap_browse = 1;
          imap_browse (LastDir, &state);
+         browser_sort (&state);
          menu->data = state.entry;
        }
 #endif