make sure we're in readonly mode

This commit is contained in:
Cyberes 2024-07-18 19:58:42 -06:00
parent e933dfd361
commit c9b4235105
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class MailConnection:
""" """
if not search_criterion: if not search_criterion:
search_criterion = ['ALL'] 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: for search_item in search_criterion:
result, data = self.mail.uid('search', search_item) result, data = self.mail.uid('search', search_item)
mail_ids = data[0] mail_ids = data[0]