hello pavel
Is there any way to get a set amount of messages on the server?
For example, I want to get the 10 latest messages from the server in a particular folder.
I tried to use linq to select last 40 posts, but I noticed that the Date field of the message was not loaded, oh my ordination does not work.
this.Folder.Messages.OrderByDescending return (x => x.Date). Skip (0). Take (40);
because when I try to fetch all messages from my account and have to process each message my app crashes.
My account is 800 messages in the inbox. when you enter this loop below the ScriptTimeout my page bursts.
foreach (msg ImapX.Message in mesagens)
{
msg.Process ();
}
Is there any way to get a set amount of messages on the server?
For example, I want to get the 10 latest messages from the server in a particular folder.
I tried to use linq to select last 40 posts, but I noticed that the Date field of the message was not loaded, oh my ordination does not work.
this.Folder.Messages.OrderByDescending return (x => x.Date). Skip (0). Take (40);
because when I try to fetch all messages from my account and have to process each message my app crashes.
My account is 800 messages in the inbox. when you enter this loop below the ScriptTimeout my page bursts.
foreach (msg ImapX.Message in mesagens)
{
msg.Process ();
}