python3 minor bugfix (#5988)

* Update receive.py

* Update receive.py

* Update receive.py
This commit is contained in:
Benji 2018-08-22 13:31:03 +08:00 committed by Rushabh Mehta
parent 0285b8fb18
commit aee86f7bc0

View file

@ -283,7 +283,7 @@ class EmailServer:
flags = []
for flag in imaplib.ParseFlags(flag_string) or []:
pattern = re.compile("\w+")
match = re.search(pattern, flag)
match = re.search(pattern, frappe.as_unicode(flag))
flags.append(match.group(0))
if "Seen" in flags: