Переглянути джерело

Set readonly of selected Inbox to False (#3258)

Mails are not marked as SEEN, when the readonly parameter is True. That's a problem since tickets are being refreshed all few minutes, and, if you have more than 50 unread mails in your inbox, most of them will never be imported to Frappe / ERPNext.
version-14
ci2014 8 роки тому
committed by Rushabh Mehta
джерело
коміт
99f6a34b18
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      frappe/email/receive.py

+ 1
- 1
frappe/email/receive.py Переглянути файл

@@ -173,7 +173,7 @@ class EmailServer:
email_list = [] email_list = []
self.check_imap_uidvalidity() self.check_imap_uidvalidity()


self.imap.select("Inbox", readonly=True)
self.imap.select("Inbox", readonly=False)
response, message = self.imap.uid('search', None, self.settings.email_sync_rule) response, message = self.imap.uid('search', None, self.settings.email_sync_rule)
if message[0]: if message[0]:
email_list = message[0].split() email_list = message[0].split()


Завантаження…
Відмінити
Зберегти