]> granicus.if.org Git - mutt/commitdiff
Leave error message on screen if imap_mailbox_create fails
authorBrendan Cully <brendan@kublai.com>
Mon, 5 Jan 2009 23:34:43 +0000 (15:34 -0800)
committerBrendan Cully <brendan@kublai.com>
Mon, 5 Jan 2009 23:34:43 +0000 (15:34 -0800)
ChangeLog
browser.c

index 1bcd805a604a4b4872f5799fa228ba6964ffa08b..012bc173b38d4d02ef11ec5c20c1badb4bb83f04 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-01-05 12:19 -0800  Brendan Cully  <brendan@kublai.com>  (1cdc8d64b55c)
+
+       * doc/mutt.man: Add pointer to the full manual to the front of mutt.1
+
+2009-01-05 09:16 -0800  Petr Písař  <petr.pisar@atlas.cz>  (990f1e841dd4)
+
+       * po/cs.po: Updated Czech translation
+
 2009-01-04 22:36 -0800  Vincent Lefevre  <vincent@vinc17.org>  (9af288ee9e91)
 
        * po/fr.po: Updated French translation
index b50210d31111b8aa5b1f617ae524752da5f8a3cf..7026f5f75eaf982ad7d12ac588bac0c74ba58483 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -875,19 +875,22 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, int *num
          mutt_error (_("Create is only supported for IMAP mailboxes"));
        else
        {
-         imap_mailbox_create (LastDir);
-         /* TODO: find a way to detect if the new folder would appear in
-          *   this window, and insert it without starting over. */
-         destroy_state (&state);
-         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; 
-         init_menu (&state, menu, title, sizeof (title), buffy);
-         MAYBE_REDRAW (menu->redraw);
+         if (!imap_mailbox_create (LastDir))
+         {
+           /* TODO: find a way to detect if the new folder would appear in
+            *   this window, and insert it without starting over. */
+           destroy_state (&state);
+           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; 
+           init_menu (&state, menu, title, sizeof (title), buffy);
+           MAYBE_REDRAW (menu->redraw);
+         }
+         /* else leave error on screen */
        }
        break;