]> granicus.if.org Git - neomutt/commitdiff
Go into no-mailbox mode when the initial folder can't be opened.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 11 Dec 1998 20:30:29 +0000 (20:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 11 Dec 1998 20:30:29 +0000 (20:30 +0000)
main.c

diff --git a/main.c b/main.c
index 0340f8b1f7d7520842f4443a678c39a1caa466fd..191d374c6473b25940787052cb41d988584fc73f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -673,15 +673,11 @@ int main (int argc, char **argv)
 
     mutt_folder_hook (folder);
 
-    if ((Context = mx_open_mailbox (folder, ((flags & M_RO) || option (OPTREADONLY)) ? M_READONLY : 0, NULL)) != NULL)
-    {
-      mutt_index_menu ();
-      if (Context)
-       safe_free ((void **)&Context);
-      mutt_endwin (NULL);
-    }
-    else
-      mutt_endwin (Errorbuf);
+    Context = mx_open_mailbox (folder, ((flags & M_RO) || option (OPTREADONLY)) ? M_READONLY : 0, NULL);
+    mutt_index_menu ();
+    if (Context)
+      safe_free ((void **)&Context);
+    mutt_endwin (NULL);
   }
 
   exit (0);