fix encoding of sender name in the email's From field
This commit is contained in:
parent
16318dcbf6
commit
58b9e693ee
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class Monboob(ConsoleApplication):
|
|||
if mail.get_reply_id():
|
||||
reply_id = u'<%s.%s@%s>' % (backend.name, mail.get_full_reply_id(), domain)
|
||||
subject = mail.get_title()
|
||||
sender = u'%s <%s@%s>' % (mail.get_from(), backend.name, domain)
|
||||
sender = u'"%s" <%s@%s>' % (mail.get_from().replace('"', '""'), backend.name, domain)
|
||||
|
||||
# assume that get_date() returns an UTC datetime
|
||||
date = time.strftime('%a, %d %b %Y %H:%M:%S +0000', mail.get_date().timetuple())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue