diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index 4d8fd9bb08..7193638070 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -579,7 +579,7 @@ def parse_email(email_strings): if not document_parts or len(document_parts) != 2: continue - doctype = unquote_plus(document_parts[0]) + doctype = unquote_plus(frappe.unscrub(document_parts[0])) docname = unquote_plus(document_parts[1]) yield doctype, docname