-
Notifications
You must be signed in to change notification settings - Fork 266
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
Improve quoted-printable decoding #307
Conversation
Hi @Maria-12648430, we merged a re-format of the code, which makes your PR conflict with master 😭 Could you rebase? |
It will probably have to wait until next week, but yes, sure 😊 |
2a7fb67
to
d45c6e9
Compare
Well, I did it today ;) For reference, I rebased my branch on |
<< | ||
"=?ISO-8859-1?Q?a?=\n" | ||
" =?ISO-8859-1?Q?b?=" | ||
>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not part of my original PR, it got reformatted with the rest when I ran rebar3 fmt
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can't say I 100% understand QP-encoding (especially soft-linebreaks and whitespace management).
But since code is now simpler and more optimized + all tests pass - I'm for it.
Thanks @Maria-12648430 and sorry for the needed rebase. |
No worries 😄 |
This PR improves Quoted-Printable decoding by removing look-aheads in the remaining binary, and processing the entire body in one go instead of line by line.
This PR also includes a small (unrelated) nano-optimization/correction, replacing a list with a tuple in a case expression and the associated matches.