Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing with tab character throws #12

Closed
matthiasg opened this issue Dec 8, 2016 · 3 comments
Closed

Parsing with tab character throws #12

matthiasg opened this issue Dec 8, 2016 · 3 comments
Assignees
Labels

Comments

@matthiasg
Copy link

not sure whether this shoulld be supported per spec but i get emails with the following content disposition:

attachment;\tfilename="Saturn_V__-_Kennedy_Space_Center_MyUglyPhotos.com_FullSize.jpg"

note the \t instead of a space. this seems unsupported. when i replace the tab with space it works fine.

@dougwilson dougwilson self-assigned this Dec 9, 2016
@dougwilson dougwilson added the bug label Dec 9, 2016
@dougwilson
Copy link
Contributor

dougwilson commented Dec 9, 2016

Hi @matthiasg yes this is a bug! I'm working to fix it now. We should be parsing with ABNF LWS for the separators, which includes the horizontal tab character. Instead right now it's only accepting the space character.

@dougwilson
Copy link
Contributor

The fix has been published to npm as version 0.5.2, enjoy!

@matthiasg
Copy link
Author

thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants