------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4491/
------------------------------------------------------------------------------

New ticket #4491 by johro
For Beanbag, Inc. > Djblets

Status: New

File attachments:

 * fix_mail_headers_with_non_ascii_chars.patch
   <https://hellosplat.com/s/beanbag/attachments/1215/>



------------------------------------------------------------------------------
Corrupted mail headers when using non ascii charachters in header values.
==============================================================================

# What version of Djblets are you using?
python-djjblets-0.9.4-1.el7.noarch


# Which module(s) have the problem?
djblets.mail.message


# What steps will reproduce the problem?
1. Creating a review in Review Board where one of the recipients have non ascii 
chars in their email, ie "John Döe <j...@example.com>"
2. 
3. 


# What is the expected output? What do you see instead?
"Sender" mail header becomes: (recieved mail)
"=?uf-8?q?John_D=C3=B6e_=3Cjdoe=40example=2Ecom=3...@host.example.com"

Expected "Sender" mail header:
"=?uf-8?q?John_D=C3=B6e?= <j...@example.com>"


Mailer used:
Postfix

/etc/postfix/main.cf (modifications)
    myhostname = host.example.com
    mydomain = example.com
    myorigin = $myhostname


# What version of Python and Django?
python-2.7.5-39.el7_2.x86_64
python-django-1.6.11-5.el7.noarch


# Other possible relevant versions
CentOS Linux release 7.2.1511 (core)
postfix-2.10.1-6.el7.x86_64
ReviewBoard-2.5.7-1.el7.noarch


# Please provide any additional information below.
We worked around it by using a patch that uses djangos 
SafeMIMEText.__setitem__() to properly encode the headers.

------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to