From: Thomas Roessler Date: Wed, 23 May 2001 07:16:50 +0000 (+0000) Subject: patch-bac.createnull-20010522.1 X-Git-Tag: mutt-1-3-19-rel~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=503886f083752001019d56353bcc05454c2fb64f;p=mutt patch-bac.createnull-20010522.1 --- diff --git a/imap/browse.c b/imap/browse.c index daf02a2f..de137b43 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -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;