Mail Thread Issue using imapx

Topics: Help requests, Issues
Apr 29, 2015 at 6:37 AM
hello,

i have an issue when i try to get message thread of specfic message i got the same orginal message ..
here is my code iam using
long[] ids = new long[] { long.Parse(Session["msgid"].ToString()) };
Message[] msgar = client.Folders.Sent.Search(ids, MessageFetchMode.Basic | MessageFetchMode.GMailThreads | MessageFetchMode.GMailExtendedData);

foreach (Message msg in msgar)
           {
                msg.GmailThread.Messages.Download("ALL", MessageFetchMode.Basic | MessageFetchMode.GMailThreads | MessageFetchMode.GMailExtendedData, -1);
                msg.GmailThread.FetchAssocicatedMessages(MessageFetchMode.Basic | MessageFetchMode.GMailThreads | MessageFetchMode.GMailExtendedData, -1);
if (msg.GmailThread.Messages.Count() > 0)
                   {

                    for (int i = 0; i < msg.GmailThread.Messages.Count(); i++)
                    {
                    // here this is the message Right 
                        Message msg_sub = msg.GmailThread.Messages[i];

                        }

                     }

       }
kindly need help

thanks and regards
Coordinator
May 10, 2015 at 9:42 AM
Edited May 10, 2015 at 11:41 AM
Hello tamerelgendy80,

this is not an issue, you get an instance of the message thread, so it will include all messages associated with this thread.

Greets,

Pavel