Closed Bug 412409 Opened 17 years ago Closed 17 years ago

UTF-8 encoded subject fails at user registration confirming mail

Categories

(addons.mozilla.org Graveyard :: Localization, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: masa141421356, Assigned: wenzel)

References

()

Details

(Keywords: intl)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: When registering user by https://addons.mozilla.org/ja/firefox/users/register, registration confirming mail from a.m.o. has invalid Subject header. And it causes broken mail subject. Reproducible: Always Steps to Reproduce: 1.Register user at https://addons.mozilla.org/ja/firefox/users/register 2.Recieve register confirming mail 3.Check its subject Actual Results: Its subject is Subject: =?UTF-8?B?RmlyZWZveCBBZGQtb25zIOOBuOOBlOeZu+mMsuOBhOOBn+OBoOOBjeOBguOC?= =?UTF-8?B?iuOBjOOBqOOBhuOBlOOBluOBhOOBvuOBmQ==?= Decoded title is Firefox Add-ons へご登録いただきあ��がとうございます Expected Results: It should be Subject: =?utf-8?b?RmlyZWZveCBBZGQtb25zIOOBuOOBlOeZu+mMsuOBhA==?= =?utf-8?b?44Gf44Gg44GN44GC44KK44GM44Go44GG44GU44GW44GE44G+44GZIA==?= Decoded title should be Firefox Add-ons へご登録いただきありがとうございます It has two problems. 1.Length of First line of Subject is longer then 76characters. (It doesn't conform to RFC 2047.) 2.Single UTF-8 character is divided as two encoded parts (Some mail agent may not able to re-struct string correctly) If you can read Japanaes please see also http://forums.firehacks.org/trans/viewtopic.php?t=3986
See also RFC2047: Section 2 (http://tools.ietf.org/html/rfc2047#section-2) > While there is no limit to the length of a multiple-line header > field, each line of a header field that contains one or more > 'encoded-word's is limited to 76 characters. Section 5 (3) - on page 8 (http://tools.ietf.org/html/rfc2047#page-8) > Each 'encoded-word' MUST represent an integral number of characters. > A multi-octet character may not be split across adjacent 'encoded- > word's.
Depends on: 432493
I can confirm. It seems like an issue with the phpmailer library we use, so I filed bug 432493 to handle that specifically. I believe we need to push the bug up-stream, possibly providing a patch ourselves if it's relatively easy to figure out.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Problem around encoding of Localized subject for user registration confriming mail → Problem around encoding of Localized subject for user registration confirming mail
Keywords: intl
Summary: Problem around encoding of Localized subject for user registration confirming mail → UTF-8 encoded subject fails at user registration confirming mail
Masahiro: Thank you very much for pushing this bug upstream and finding a patch. Well done. I will try to put this in place soon.
Assignee: nobody → fwenzel
Target Milestone: --- → 3.4.3
I updated the phpmailer library we use to 2.0.0 including the patch from comment 4 (SVN r13091). In my tests, the Japanese confirmation email now has a working subject. Marking push-needed, it will go online in production with the next push. Stephend: For testing, you may want to register on Japanese preview so that you get a multibyte-character email: The subject line and the text should have proper Japanese symbols, and no garbled question marks. Masahiro: Again thank you for your help.
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: push-needed
Resolution: --- → FIXED
Target Milestone: 3.4.3 → 3.4.2
Version: unspecified → 3.2
Masahiro-san; does the attached screenshot verify that this bug is fixed? Thanks!
(In reply to comment #7) > Created an attachment (id=320850) [details] > Screenshot of [ja] confirmation email > > Masahiro-san; does the attached screenshot verify that this bug is fixed? > > Thanks! > Looks good. Thank you! --> VERIFIED
Status: RESOLVED → VERIFIED
(In reply to comment #7) > Created an attachment (id=320850) [details] > Screenshot of [ja] confirmation email > > Masahiro-san; does the attached screenshot verify that this bug is fixed? A screenshot with Steve Urkel on it is automatically verified! ;-)
Keywords: push-needed
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: