diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-09 15:07:41 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-09 15:07:41 -0300 |
commit | f072f75dc4ae0bcb2dbf57f1d374a1e53913eed4 (patch) | |
tree | db5418b40f129e864e9e4a5bba7a7ef72690e9f4 /mail/src | |
parent | 7e7db492bc1ea5f130d167ce55c9c63348d213d6 (diff) |
addMailbox shouldn't accept empty names since it makes it impossible to retrieve it later
Diffstat (limited to 'mail/src')
-rw-r--r-- | mail/src/leap/mail/imap/account.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/src/leap/mail/imap/account.py b/mail/src/leap/mail/imap/account.py index 74ec11e2..70ed13bd 100644 --- a/mail/src/leap/mail/imap/account.py +++ b/mail/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)) |