This project is read-only.

Messages order

Topics: Help requests
Oct 24, 2013 at 6:06 PM
I'm curious what the default order of the email messages are when you obtain them from Gmail.

I'm using
int i = 0;
foreach (Imapx.Message msg in InboxMessage_ALL)
MessageBox.Show("Message From: " + msg.GmailThread.Messages[i].Subject;

However, the order that appears in the message box is
1) "inbox test"
2) tomato
3) test 2
4) test 1

Which is not in alphabetical order like i expected, nor is it in the same order as it appears on the Gmail website.

Is there a way to sort by date? name? ect?
Oct 24, 2013 at 6:47 PM
Edited Oct 24, 2013 at 6:48 PM
Hi maylortaylor,

the order you have is exactly the order of message UIds (normally should be the reverse order compared to GMail website).
Currently you can sort your messages by any criteria on client side using LINQ after you downloaded them.