You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sort order is set in the method ImapFolder.Search.SearchMatchesAsync. Maybe it should be set to none if the UntaggedHandlers has a key like "SORT"?
The text was updated successfully, but these errors were encountered:
mad0715
changed the title
Imap sort returns UniqueIds are always sorted in ascending order
Imap sort returned UniqueIds are always sorted in ascending order
Dec 18, 2018
mad0715
changed the title
Imap sort returned UniqueIds are always sorted in ascending order
UniqueIds returned by the Mailfolder.Sort are always sorted in ascending order
Dec 18, 2018
If the IMAP server did not support ESEARCH, the order of the returned
UniqueIds was always sorted in ascending order even if that is not
the order of the UIDs returned by the IMAP server in the untagged
`SORT` response.
Fixes issue #789
I'll try to make a new release either late December (week or so after Christmas) or sometime in early January. I probably won't have time until then to make a release.
Describe the bug
The uniqueIds returned by the Mailfolder.Sort are always sorted in ascending order and not in the order they were sent by the server.
To Reproduce
Use mailfolder.Sort to get the sorted Uid list:
Expected behavior
Uids should be in the same order as they were sent by the imap server.
Imap log:
The sort order is set in the method ImapFolder.Search.SearchMatchesAsync. Maybe it should be set to none if the UntaggedHandlers has a key like "SORT"?
The text was updated successfully, but these errors were encountered: