diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index 2bbdf9db20..a108225a48 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -293,8 +293,12 @@ class EmailAccount(Document): else: frappe.db.commit() - if communication and hasattr(communication, "_attachments"): - attachments = [d.file_name for d in communication._attachments] + if communication: + attachments = [] + + if hasattr(communication, '_attachments'): + attachments = [d.file_name for d in communication._attachments] + communication.notify(attachments=attachments, fetched_from_email_account=True) #notify if user is linked to account