fixes in header decoding in receiving support ticket email
diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py
index 440c061..bf69228 100644
--- a/erpnext/support/doctype/support_ticket/__init__.py
+++ b/erpnext/support/doctype/support_ticket/__init__.py
@@ -70,9 +70,7 @@
from webnotes.utils import decode_email_header
- # replace double quotes with blank
- # double quotes in header prohibit decoding of header
- full_email_id = decode_email_header(mail.mail['From'].replace('"', ''))
+ full_email_id = decode_email_header(mail.mail['From'])
for thread_id in thread_list:
exists = webnotes.conn.sql("""\
@@ -104,9 +102,7 @@
d = Document('Support Ticket')
d.description = content
- # replace double quotes with blank
- # double quotes in header prohibit decoding of header
- d.subject = decode_email_header(mail.mail['Subject'].replace('"', ''))
+ d.subject = decode_email_header(mail.mail['Subject'])
d.raised_by = full_email_id
d.content_type = content_type