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: [email protected], intead
FROM: Some Name <[email protected]>).

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: [email protected],
  intead FROM: Some Name <[email protected]>).

  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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to