Browse Source

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 years ago
committed by Rushabh Mehta
parent
commit
99f6a34b18
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/receive.py

+ 1
- 1
frappe/email/receive.py View File

@@ -173,7 +173,7 @@ class EmailServer:
email_list = []
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)
if message[0]:
email_list = message[0].split()


Loading…
Cancel
Save