From c20d5b9a5724539f11f3e7b8f18eb6a18508675e Mon Sep 17 00:00:00 2001 From: mbauskar Date: Wed, 15 Mar 2017 15:27:46 +0530 Subject: [PATCH] [minor] fixed email seen/unseen status condition --- frappe/email/doctype/email_account/email_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 7b6908f4db..fbc93f82af 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -226,7 +226,7 @@ class EmailAccount(Document): def get_seen(status): if not status: return None - seen = 0 if status == "SEEN" else 1 + seen = 1 if status == "SEEN" else 0 return seen if self.enable_incoming: