seitime-frappe/frappe/email
Chinmay D. Pai fb511b1dfd
fix(email): check if communication hasattr for attachment
fixes issue where previous communication has no attribute _attachments
before it fails, causing the following error:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 99, in execute_job
    method(**kwargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 724, in pull_from_email_account
    email_account.receive()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 295, in receive
    attachments = [d.file_name for d in communication._attachments]
AttributeError: 'Communication' object has no attribute '_attachments'

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-05 00:35:06 +05:30
..
doctype fix(email): check if communication hasattr for attachment 2020-01-05 00:35:06 +05:30
page add to contact for email inbox 2017-03-14 17:55:07 +05:30
__init__.py fix: added null check for contact attributes (#8050) 2019-07-30 13:14:22 +05:30
email_body.py refactor: change validate_email_add to validate_email_address 2019-03-07 19:06:27 +05:30
inbox.py fix: moved erpnext related methods from frappe to erpnext (#7332) 2019-04-22 15:56:30 +05:30
queue.py fix(email): safe_encode to avoid smtp ascii encoding issue 2020-01-03 14:56:15 +05:30
receive.py fix(email): handle case where cstr returns text_type of str 2019-12-27 16:28:09 +05:30
smtp.py fix: unreferenced variable 2020-01-04 09:26:23 +05:30
test_email_body.py chore: pass email_body test 2020-01-03 23:14:08 +05:30
utils.py feat: allow custom imap port (#8305) 2019-09-25 23:04:05 +00:00