Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove new gmail reply format #64
Conversation
adamcrown
commented
Mar 28, 2018
|
We had this exact problem and this fixed it for us. It would be great to have this merged and a new version released. |
|
@tenderlove the last commit in this gem was yours, can you check this PR please? |
bcackerman
commented
Aug 7, 2018
|
Can we get these merged in? |
cezartiv
commented
Sep 17, 2018
|
We also have exactly this case patching now. Can anyone please merge this in? |
|
@mfbmina Sorry for lack of attention here, but thanks for opening this PR! I noticed that the added test case seems to pass with or without the change, probably because the two calls share an implementation. If you're still game for it, could you update the test case to be based on a string literal, similar to other nearby tests? I'll do what I can to facilitate incorporating the patch into a new release. |
MelizzaP
commented
Oct 22, 2019
|
@mattyoho is the only thing blocking this merge the test case? If I fixed it could this be merged? |
|
@mfbmina @MelizzaP Thanks for taking a look at this PR again! Appreciate the updated test, @mfbmina. Unfortunately, coming back to this pull request, I need to ask for some further changes to how the patch is structured before merging, because it works differently than the existing code for detecting a quote header does. Here in this PR we're removing the Google Mail quote header from the incoming text on the "first pass" that performs some line normalization prior to the "second pass" of line-by-line scanning. (I use quotes here because the code isn't explicitly structured as a multi-pass implementation, though de facto it is.) But the existing quote header detection leaves the header text in place so that it's subsequently included in a quote fragment on that second pass. Adjacent to the addition here, the existing detection just normalizes the header text to remove any newlines that may have been introduced by the line-wrapping conventions for email messages: email_reply_parser/lib/email_reply_parser.rb Lines 88 to 90 in 8d4ecb5 It then later uses email_reply_parser/lib/email_reply_parser.rb Lines 173 to 179 in 8d4ecb5 Where the definition of email_reply_parser/lib/email_reply_parser.rb Lines 188 to 196 in 8d4ecb5 So what I would ask is for two changes:
This will have the benefits of not stripping the header text and also associating the newline that follows it with the quote block. With those changes I think we can merge and then cut a pre-release version of the gem that includes the patch. Happy to discuss things further if needed. Thank you for contributing! |
|
@mattyoho I applied the changes that you required! Hope that solves all issues |
MelizzaP
commented
Oct 29, 2019
|
@mattyoho do you had a chance to look? |
MelizzaP
commented
Dec 5, 2019
|
@mfbmina is this ok to merge? |
|
@MelizzaP I think so... Tests are passing and I did the requested changes. |
MelizzaP
commented
Dec 6, 2019
|
whoops, sorry, I tagged the wrong person. @mattyoho is this ok to merge? |
mfbmina commentedDec 22, 2017
Gmail is using another format to replies: Eg. "DATETIME NAME :"
This PR removes it too.