make sure we're in readonly mode
This commit is contained in:
parent
e933dfd361
commit
c9b4235105
|
@ -130,7 +130,7 @@ class MailConnection:
|
|||
"""
|
||||
if not search_criterion:
|
||||
search_criterion = ['ALL']
|
||||
self.mail.select(normalize_for_imap_folder(folder))
|
||||
self.mail.select(normalize_for_imap_folder(folder), readonly=True)
|
||||
for search_item in search_criterion:
|
||||
result, data = self.mail.uid('search', search_item)
|
||||
mail_ids = data[0]
|
||||
|
|
Loading…
Reference in New Issue