Skip to content

🐛 Fix partial-range encoding of exclusive ranges#370

Merged
nevans merged 1 commit intomasterfrom
fix-exclusive-partial-range-encoding
Dec 22, 2024
Merged

🐛 Fix partial-range encoding of exclusive ranges#370
nevans merged 1 commit intomasterfrom
fix-exclusive-partial-range-encoding

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Dec 22, 2024

Previously, imap.uid_search "ALL", return: ["PARTIAL", 1...500] would wrongly encode the range to "1:500", but it should encode as "1:499".

Maybe this could have been a one line bugfix: first, last = range.minmax. But the rest was written to simplify support for the PARTIAL extension (#367).

This _could_ be a one line bugfix: `first, last = range.minmax`.  But
the rest was written to simplify support for the `PARTIAL` extension.
@nevans nevans merged commit 43f531e into master Dec 22, 2024
@nevans nevans deleted the fix-exclusive-partial-range-encoding branch December 22, 2024 23:33
@nevans nevans added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant