-
Notifications
You must be signed in to change notification settings - Fork 158
Don't interpret signature delimiter in the middle of line as signature #24
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
Don't interpret signature delimiter in the middle of line as signature #24
Conversation
…dle of the line don't get interpreted as beginning of signature.
… the middle of the line don't get interpreted as beginning of signature." This reverts commit 1e8a064.
…the middle of text don't get interpreted as beginning of signature.
@technoweenie could you have a look at this? |
@defunkt could you or someone else on your team have a look at this PR? |
Hi, thanks for the patch. I've filed an internal issue for someone to look at. Do you want me cut a pre-release gem for you? |
No need for a pre-release gem, thanks (I'm running a rudely monkey-patched version). |
Any chance this will ever get reviewed? Or should I just close this PR? |
Nope, this slipped through the cracks. I'll just merge it. |
Failures ^ |
Fix in 7837dac. The regexes are backwards because of the way it figures out which fragments to show on emails with inline replies. Take the following email for example:
We want fragment 3 to be hidden. Fragment 1 should be shown, because it's necessary context for fragment 2. If we parse top to bottom, we have no idea if fragment 1 should be hidden or not. By parsing from bottom to top, we mark replied fragments hidden until an original fragment (like 2) is found. |
Thanks for fixing that, and for merging in. Ok with you if I delete this branch? Or do you guys like to keep those around? |
Also, any idea when you'll have a new release with this fix? |
Just pushed it to rubygems. https://github.com/github/email_reply_parser/releases/tag/v0.5.6 Feel free to delete the branch. GitHub PRs are Git refs, so we can easily restore them if we really need to. Thanks for the patch! |
Awesome, thanks for the review and the release! |
This fixes the problem described in issue #17