Mass mailing fails when contact or partner name contains commas

Bug #688402 reported by Jean-Luc Agathos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Steps to reproduce:
-Create a partner whose name contains a comma e.g. "Last, Firstname", plus a valid email address.
-Try to send a mass mailing to this partner.

Observed result:
-The tools.email_send() or the sendmail process fails silently.
-Sendmail logs says that user "Last" was not found.

This bug was observed on Ubuntu Linux with OpenERP version 5.0.15.

A possible patch consists in quoting the partner/contact name in file addons/base/res/partner.wizard/wizard_spam.py, line 50, as shown below:

to = '"%s" <%s>' % (name, adr.email)

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello Jean-Luc,

The fix has been merged in server revision 3147 <email address hidden>.

Thank you for reporting, and providing a suggestion for the patch!

Changed in openobject-addons:
milestone: none → 6.0-rc2
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.