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

how to get new messages first on listMessages? #215

Open
ghost opened this issue Jul 26, 2019 · 1 comment
Open

how to get new messages first on listMessages? #215

ghost opened this issue Jul 26, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 26, 2019

listMessages methods always return sorted by date asc

@MarcoCatalan
Copy link
Contributor

MarcoCatalan commented Nov 12, 2019

What sequence are you giving it?
According to the RFC the sequence is defined as:

seq-range       = seq-number ":" seq-number
                    ; two seq-number values and all values between
                    ; these two regardless of order.
                    ; Example: 2:4 and 4:2 are equivalent and indicate
                    ; values 2, 3, and 4.
                    ; Example: a unique identifier sequence range of
                    ; 3291:* includes the UID of the last message in
                    ; the mailbox, even if that value is less than 3291.

I haven't been able to find anything about how the server should order messages, so I guess the server can do it as it wants (Although I haven't found a server with doesn't order messages by ascending sequence number)

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

No branches or pull requests

1 participant