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

Add quirk for missing space in continue req command #639

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

soywod
Copy link
Contributor

@soywod soywod commented Feb 7, 2025

Fixes #638.

@soywod soywod force-pushed the continue-req-space branch from 16f32c7 to 72a036f Compare February 7, 2025 10:50
@coveralls
Copy link
Collaborator

coveralls commented Feb 7, 2025

Pull Request Test Coverage Report for Build 13673990768

Details

  • 6 of 9 (66.67%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 91.609%

Changes Missing Coverage Covered Lines Changed/Added Lines %
imap-codec/src/response.rs 6 9 66.67%
Totals Coverage Status
Change from base Build 13317192473: -0.02%
Covered Lines: 11474
Relevant Lines: 12525

💛 - Coveralls

@soywod soywod force-pushed the continue-req-space branch from 72a036f to 95dc4dc Compare February 18, 2025 13:48
@duesee
Copy link
Owner

duesee commented Feb 19, 2025

Hey, thanks for the PR! Somehow missed this one, sorry. Do we want to allow +<base64>\r\n, too? Or only an additional +\r\n?

@soywod
Copy link
Contributor Author

soywod commented Feb 19, 2025

This is a very good question. I would say we only encountered +\r\n at the moment, so let's be simple and just add a quirk for that use case. We can still extend the scope of this quirk later on.


Why GitHub complains about blocked merge?

This branch must not contain merge commits.

But this branch does only contain one simple commit…

@duesee
Copy link
Owner

duesee commented Feb 19, 2025

Why GitHub complains about blocked merge?

Does it? I can click on Rebase and merge...

@soywod
Copy link
Contributor Author

soywod commented Feb 21, 2025

screenshot

Strange… go ahead then if it's green from your side 👌

@duesee
Copy link
Owner

duesee commented Feb 21, 2025

Weird... but do you want to adapt to only allow +/r/n then? If my reading is correct, we will allow +<stuff>\r\n after the merge? Because you said you would also prefer to have minimal quirks.

@soywod
Copy link
Contributor Author

soywod commented Feb 21, 2025

Oh I see what you mean. In my mind it was more "this PR only makes the space after + optional", but it turns out to accept +<any>\r\n. Only accepting +\r\n would make the PR more complicated, I like the simplicity of this one, but at the same time the scope is larger and conflicts with what I said last time. What's your opinion?

@duesee
Copy link
Owner

duesee commented Feb 21, 2025

I would also prefer to have minimal quirks but would also merge as is when the alternative is more complicated. I'll let you decide if you want to give the more minimal approach a try or prefer to be quick here :-) We can also make a reminder to tighten up later if we feel like it. There should be no harm done either way.

It now only parses empty continuation requests `+\r\n`.

Refs: duesee#639
@soywod
Copy link
Contributor Author

soywod commented Mar 5, 2025

I opted for the smaller scope. Ready for another review!

@duesee duesee self-requested a review March 5, 2025 19:37
Copy link
Owner

@duesee duesee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Less code and tighter! Awesome, thanks!

@duesee duesee merged commit 0d01b2d into duesee:main Mar 5, 2025
9 of 10 checks passed
@soywod soywod deleted the continue-req-space branch March 5, 2025 23:51
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

Successfully merging this pull request may close these issues.

feat: Implement quirk for missing space in command continuation response
3 participants