]> granicus.if.org Git - mutt/commitdiff
patch-bac.createnull-20010522.1
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 23 May 2001 07:16:50 +0000 (07:16 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 23 May 2001 07:16:50 +0000 (07:16 +0000)
imap/browse.c

index daf02a2f5da7dbc266025897fda61478af63da24..de137b4390699cf23650472347fac17dcc246fa7 100644 (file)
@@ -271,6 +271,13 @@ int imap_mailbox_create (const char* folder)
   if (mutt_get_field (_("Create mailbox: "), buf, sizeof (buf), M_FILE) < 0)
     goto fail;
 
+  if (!mutt_strlen (buf))
+  {
+    mutt_error (_("Mailbox must have a name."));
+    mutt_sleep(1);
+    goto fail;
+  }
+  
   if (imap_create_mailbox (idata, buf) < 0)
     goto fail;