Outgoing e-mail header details

Bug #554124 reported by Dukai Gábor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Power Email
Fix Released
Medium
Sharoon Thomas http://openlabs.co.in

Bug Description

Hi!
Some small details are missing from the outgoing mail headers to make them look better in the e-mail clients:
-Proper encoding of the 'From' field to work with accented characters.
-The user's company added as an organization.
-Date sent is needed, othewise sorting by date in the client puts these mails as the oldest.

The code is here:
from email.utils import formatdate
from email.header import Header

sender_name = Header(core_obj.name, 'utf-8').encode()
msg['From'] = sender_name + " <" + core_obj.email_id + ">"
msg['Organization'] = tools.ustr(core_obj.user.company_id.name)
msg['Date'] = formatdate()

Related branches

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Can you propose a merge please with these changes?

Changed in poweremail:
assignee: nobody → Sharoon Thomas http://openlabs.co.in (sharoonthomas)
importance: Undecided → Medium
milestone: none → 0.7
status: New → In Progress
Revision history for this message
Dukai Gábor (gdukai) wrote :
Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Marking fixed as this issue is resolved by the merge from Dukai

Changed in poweremail:
status: In Progress → 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.