Don't strip out content that looks like the field name from the middle of a field#719
Conversation
|
Looks good to me, but I'm new to the library, so I would want either another opinion or to look at the RFCs before merging. |
6ec417f to
750c3c8
Compare
750c3c8 to
e9f030a
Compare
|
@bf4, RFC-2822 would support the change that kjg made. Depending on how the library splits up the original (raw) message header, the Regex would use either a start of string (\A) or a start of line (^). With proper unfolding of the header lines, the best option would be a start of string (\A) as kjg has committed. Please refer to RFC-2822 section 2.2 for the information that would be pertinent to the change being requested (https://www.ietf.org/rfc/rfc2822.txt). |
|
I agree that the current behavior (stripping anywhere in the string) is wrong and the proposed behavior (only stripping at the start of the string) is better. |
e9f030a to
0646650
Compare
|
this still strips |
|
@grosser I fully support #766 as a long term solution, but it sounds like it needs more work to address the API change by adding deprecation and what not. This is at least an improvement over what's currently released and it's ready to go today and has support from others. Is there anything I can do to help you get #766 into a state that the project will accept? |
|
I so far did not see anything breaking from this 'api change', I don't On Thu, May 14, 2015 at 10:28 AM, Kevin Glowacz notifications@github.com
|
|
What is shady about this change? |
|
It's still doing the wrong thing, just being more elaborate about it :D |
|
I'm not sure what's more elaborate about only matching at the beginning of the string, but I'm in full support of #766. Unfortunately it does seem like they are willing to accept #766 as is. If you'd like help getting it to a place that the maintainers are willing to accept, i'm very willing to help out. This change at least makes the behavior more correct that it was before, and it's a pretty simple change to merge. |
|
Agreed, this is better than before and should not break anything. On Thu, May 14, 2015 at 11:55 AM, Kevin Glowacz notifications@github.com
|
0646650 to
d9eae0e
Compare
Don't strip out content that looks like the field name from the middle of a field
No description provided.