-
Notifications
You must be signed in to change notification settings - Fork 91
Wrong behavior of folder_exists method #191
Copy link
Copy link
Closed
Description
Originally reported by: Anton Koval' (Bitbucket: psihonavt)
Hello,
code below demonstrates bug quite clearly:
#!python
In [4]: imap.list_folders()
Out[4]:
[(('\\NoInferiors',), '/', u'INBOX'),
(('\\NoInferiors', '\\Junk'), '/', u'Bulk Mail'),
(('\\HasNoChildren',), '/', u'Deleted Messages'),
(('\\NoInferiors',), '/', u'Drafts'),
(('\\HasNoChildren',), '/', u'Email_Templates'),
(('\\HasNoChildren',), '/', u'Notes'),
(('\\NoInferiors',), '/', u'Send_Later'),
(('\\HasNoChildren',), '/', u'Sent Messages'),
(('\\NoInferiors', '\\Sent'), '/', u'Sent Items'),
(('\\NoInferiors', '\\Trash'), '/', u'Trash')]
In [5]: imap.fol()
imap.folder_encode imap.folder_exists imap.folder_status
In [5]: imap.folder_exists(u'Sent Items')
Out[5]: False
In [6]: imap.select(u'Sent Items')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-4be9fc151e24> in <module>()
----> 1 imap.select(u'Sent Items')
AttributeError: 'IMAPClient' object has no attribute 'select'
In [7]: imap.select_folder(u'Sent Items')
Out[7]:
{'EXISTS': 2311,
'FLAGS': ('\\Draft',
'\\Answered',
'\\Flagged',
'\\Deleted',
'\\Seen',
'\\Recent'),
'PERMANENTFLAGS': ('\\Draft',
'\\Answered',
'\\Flagged',
'\\Deleted',
'\\Seen'),
'READ-WRITE': True,
'RECENT': 0,
'UIDNEXT': 2312,
'UIDVALIDITY': 1}
imapclient version is 1.0.0
Reactions are currently unavailable