From 99f6a34b18a67ce202a943b09413f02710ea6ae7 Mon Sep 17 00:00:00 2001 From: ci2014 Date: Wed, 10 May 2017 14:21:49 +0200 Subject: [PATCH] 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. --- frappe/email/receive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 1916bcd5ef..2bb09b54e0 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -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()