3 ms·
The timezone isn't for parsing addressing headers, it's for parsing date headers. And actually, that file isn't for parsing email addresses, it's for parsing ad
by jcranmer 7y ago
The timezone isn't for parsing addressing headers, it's for parsing date headers. And actually, that file isn't for parsing email addresses, it's for parsing addressing headers in mail messages.
The code I wrote for parsing email headers is here: https://github.com/jcranmer/jsmime/blob/emailutils/headerparser.js https://github.com/jcranmer/jsmime/blob/emailutils/headerpar... . A decent chunk of it is building a full lexer for email headers, and trying to cope with only supporting internationalization support in a few cases where they need to be supported. And the corner cases for that i18n support are really nasty.
- iudqnolq 7y agoOnce again, you prove me completely wrong. Thanks for the detailed correction.