Skip to content

Conversation

@stevebauman
Copy link
Member

Closes #92

As discovered by @liuch, we're assuming IMAP UIDs will always return in ascending order, which isn't the case with all providers. This PR ensures sorting is done on retrieved UIDs in a consistent manner across all IMAP servers.

@stevebauman stevebauman merged commit a96a86f into master Aug 24, 2025
13 checks passed
@liuch
Copy link

liuch commented Aug 24, 2025

Do I understand correctly that the list are only sorted by the email ids/uids without taking into account the email headers? Sorry for the meticulousness.

@stevebauman
Copy link
Member Author

@liuch Yes you're correct. We may not have access to the message headers (since they must be requested for in the query builder via $query->withHeaders()), so we can only sort by the UID.

@liuch
Copy link

liuch commented Aug 25, 2025

The names of the methods misled me. Thank you for the response.

BTW: You might want to consider this: #80

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.

How do the methods oldest() and newest() work?

3 participants