Skip to content

🐛 Fix empty SearchResult#to_sequence_set#644

Merged
nevans merged 2 commits intomasterfrom
fix-empty-search_result-to_sequence_set
Apr 17, 2026
Merged

🐛 Fix empty SearchResult#to_sequence_set#644
nevans merged 2 commits intomasterfrom
fix-empty-search_result-to_sequence_set

Conversation

@nevans
Copy link
Copy Markdown
Collaborator

@nevans nevans commented Apr 17, 2026

This provides the same behavior as ESearchResult (except it still doesn't preserve SORT order).

Fixes #641.

nevans added 2 commits April 17, 2026 11:07
This provides the same behavior as `ESearchResult`.

Fixes #641.
This is, unfortunately, different from ESearchResult#to_sequence_set's
behavior, since ESearchResult simply returns the SequenceSet as provided
by the server.

I would like to update this in a future release (perhaps 0.7).
@nevans nevans added the bug Something isn't working label Apr 17, 2026
@nevans nevans merged commit 36ecc26 into master Apr 17, 2026
39 checks passed
@nevans nevans deleted the fix-empty-search_result-to_sequence_set branch April 17, 2026 15:21
@nevans nevans changed the title 🐛 Fix empty search result to sequence set 🐛 Fix empty SearchResult#to_sequence_set Apr 17, 2026
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.

Net::IMAP::SearchResult#to_sequence_set raises ArgumentError for empty Net::IMAP::SearchResult

1 participant