Working with Forwards Gmail and Imap4 Client

Nov 19, 2015 at 10:20 PM
All the forwards in the Imap4 Client comes in as individuval messages, i want them as submessages with the main Message containing the core, how can this be done?
int[] NumberofUnreadMessages = inbox.Search("UNSEEN");--gives me 5 message out of which 4 were in 1 message which was a forward.


for()
{
ActiveUp.Net.Mail.Message msg = inbox.Fetch.MessageObjectWithGMailExtensions(NumberofUnreadMessages[i]);
}

is there an easy way i can logically group them?
Feb 11, 2016 at 11:46 PM
Are you asking about how to "thread" messages so you can see which messages were replies to what?
Jul 21, 2016 at 8:31 PM
Yes
Aug 24, 2016 at 7:18 PM
https://tools.ietf.org/html/rfc5256 defines a THREAD extension to the IMAP4rev1 protocol that you can use.

I don't think MailSystem.NET supports it, but MailKit does.

If the IMAP server does not support the THREAD extension, MailKit also has a MessageThreader class which can be used to thread the messages client-side that you can use.

Hope that helps.
Aug 24, 2016 at 7:20 PM
FWIW, the ImapFolder.Thread() method is what you'd want to use if the IMAP server supports the THREAD extension: http://www.mimekit.org/docs/html/Overload_MailKit_Net_Imap_ImapFolder_Thread.htm