Scanning email is not working after updating


Previously i configured one email for scanning to create an issue automatically. But after upgrading the erpnext it is not working and i couldn’t find any option in setup to check for that.

Please help.

Kindly share traceback or screenshot of issue.

I dont have, Before i see the option in Setup for configuring mail scanning. Now i dont know where it is

{‘retry’: 0, ‘log’: <function log at 0x7f9b41050c08>, ‘site’: u’site1.local’, ‘event’: u’all’, ‘method_name’: u’pull_from_email_account’, ‘method’: <function pull_from_email_account at 0x7f9b407e0de8>, ‘user’: u’Administrator’, ‘kwargs’: {‘email_account’: u’Qsatsupport’}, ‘async’: True, ‘job_name’: u’pull_from_email_account|Qsatsupport’}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/”, line 71, in execute_job
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 704, in pull_from_email_account
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 258, in receive
emails = email_server.get_messages()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 117, in get_messages
uid_list = email_list = self.get_new_mails()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 182, in get_new_mails
response, message = self.imap.uid(‘search’, None, self.settings.email_sync_rule)
File “/usr/lib/python2.7/”, line 773, in uid
typ, dat = self._simple_command(name, command, *args)
File “/usr/lib/python2.7/”, line 1088, in _simple_command
return self._command_complete(name, self._command(name, *args))
File “/usr/lib/python2.7/”, line 918, in _command_complete
raise self.error(‘%s command error: %s %s’ % (name, typ, data))
error: UID command error: BAD [‘Error in IMAP command UID SEARCH: Invalid UID messageset (0.001 + 0.000 secs).’]

Pawan, error copied below