Closed Bug 938321 Opened 12 years ago Closed 12 years ago

[email/backend] Implement utf-7 charset support using hand-rolled decoder.

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 C1/1.4 S1(20dec)

People

(Reporter: asuth, Assigned: mcav)

Details

Attachments

(1 file)

Per thunderbird bug 677111 at least Outlook 11 in recent history has produced utf-7 encoded HTML body parts. Our Buffer abstraction or decoding fake implementation should learn to decode utf-7. Note that UTF-7 support was removed from the system in general because of XSS and detection issues for HTML. I don't believe these are concerns for our e-mail use case given how we inject text/plain and (sanitized) text/html messages.
Assignee: nobody → mcav
Status: NEW → ASSIGNED
Attached file gelam.html
I pulled the utf-7 encoder from https://github.com/kkaefer/utf7. I pulled it into its own file rather than pulling in the node module because it hasn't been updated since 2011 and it seemed like overkill, but I'd be happy to pull in a node-dep if you'd prefer that structure.
Attachment #8345634 - Flags: review?(bugmail)
Target Milestone: --- → 1.3 C1/1.4 S1(20dec)
Comment on attachment 8345634 [details] gelam.html It is with a heavy heart that I allow you to inflict the ramblings of Outlook users upon our user-base... ;) Thanks for the fix!
Attachment #8345634 - Flags: review?(bugmail) → review+
This is breaking 6 marionnette-js tests so I had to back it out. https://github.com/mozilla-b2g/gaia/commit/7852023abb572c522a07af558e7c19f557cc4866 You can see the errors in https://travis-ci.org/mozilla-b2g/gaia/jobs/15424346
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry, that was a bad backout from my part. I saw email tests starting to fail after a commit for email and didn't verify it was fixing the tree before applying the revert. I re-landed the patch in https://github.com/mozilla-b2g/gaia/commit/59b8971.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: