diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-05-23 07:16:50 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-05-23 07:16:50 +0000 |
commit | 503886f083752001019d56353bcc05454c2fb64f (patch) | |
tree | cbb37c4422ebd69be277f0b95720121680651739 /imap | |
parent | 9518d92174404aae2bdf1776899fbe16e2823bda (diff) |
patch-bac.createnull-20010522.1
Diffstat (limited to 'imap')
-rw-r--r-- | imap/browse.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |