mozilla-b2g/gaia-email-libs-and-more — pull request #46 by asutherland (2012-09-24 05:50:55+00:00)
Title: add unit test for mime-word decoding in addresses, fix by lib updates

r? @mozsquib

Note that I think technically just the mimelib update was required, but my first step was to update mailparser in case it was at fault. Because we still require a patch to trim strings since the browser's atob() throws exceptions when node's does not (when whitespace/unsupported characters are present), I did this in my branch via a merge. I did not take the most recent release of mailparser because it changes from using mimelib for filename -> mime type to the npm 'mime' module. Although that module is more comprehensive, it would need some conversion love for us to use it because it does some node-legit stuff that is not web-legit, (and our shims aren't converting fundamental node-isms) namely:

```
mime.load(path.join(__dirname, 'types/mime.types'));
```