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

wrong behaviour with last boundary in TMail::Mail#read_multipart #12

Open
erroric opened this issue Dec 13, 2011 · 0 comments
Open

wrong behaviour with last boundary in TMail::Mail#read_multipart #12

erroric opened this issue Dec 13, 2011 · 0 comments

Comments

@erroric
Copy link

erroric commented Dec 13, 2011

Hi,
i've found issue with the multipart messages and its last boundary.
Some mail generators loose CR LF after the last boundary, and TMail does accept it as a part of content.

Problem is in a is_sep Regexp, there is an example of correct one:

/\A--#{Regexp.quote bound}(?:--[ \t](?:\n|\r\n|\r|\z)|[ \t](?:\n|\r\n|\r))/

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

No branches or pull requests

1 participant