From b52104f908d668aec39e563923c7f04c05e5f221 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 9 Sep 2014 15:07:41 -0300 Subject: addMailbox shouldn't accept empty names since it makes it impossible to retrieve it later --- src/leap/mail/imap/account.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/leap/mail/imap') diff --git a/src/leap/mail/imap/account.py b/src/leap/mail/imap/account.py index 74ec11e..70ed13b 100644 --- a/src/leap/mail/imap/account.py +++ b/src/leap/mail/imap/account.py @@ -187,6 +187,8 @@ class SoledadBackedAccount(WithMsgFields, IndexedDB, MBoxParser): """ name = self._parse_mailbox_name(name) + leap_assert(name, "Need a mailbox name to create a mailbox") + if name in self.mailboxes: raise imap4.MailboxCollision(repr(name)) -- cgit v1.2.3