openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27785
[Bug 1318166] [NEW] non-ascii symbols at FROM email field
Public bug reported:
If user name has non-ascii symbols and send email, then receiver get at
FROM field only mail adress without name (FROM: user@xxxxxxxxxxx, intead
FROM: Some Name <user@xxxxxxxxxxx>).
My suggestion is to update code at server/openerp/addons/base/ir/ir_mail_server.py:
-name_with_email_pattern = re.compile(r'("[^<@>]+")\s*<([^ ,<@]+@[^> ,]+)>')
+name_with_email_pattern = re.compile(r'([^<@>]+)\s*<([^ ,<@]+@[^> ,]+)>')
because variable header_text at function encode_rfc2822_address_header
doesn't match original pattern (name is not quoted)
** Affects: openobject-server
Importance: Undecided
Status: New
** Project changed: openobject-addons => openobject-server
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1318166
Title:
non-ascii symbols at FROM email field
Status in OpenERP Server:
New
Bug description:
If user name has non-ascii symbols and send email, then receiver get
at FROM field only mail adress without name (FROM: user@xxxxxxxxxxx,
intead FROM: Some Name <user@xxxxxxxxxxx>).
My suggestion is to update code at server/openerp/addons/base/ir/ir_mail_server.py:
-name_with_email_pattern = re.compile(r'("[^<@>]+")\s*<([^ ,<@]+@[^> ,]+)>')
+name_with_email_pattern = re.compile(r'([^<@>]+)\s*<([^ ,<@]+@[^> ,]+)>')
because variable header_text at function encode_rfc2822_address_header
doesn't match original pattern (name is not quoted)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1318166/+subscriptions
Follow ups
References