Working with Forwards Gmail and Imap4 Client

Nov 19, 2015 at 11: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.

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

is there an easy way i can logically group them?
Feb 12, 2016 at 12:46 AM
Are you asking about how to "thread" messages so you can see which messages were replies to what?
Jul 21, 2016 at 9:31 PM
Aug 24, 2016 at 8:18 PM 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 8:20 PM
FWIW, the ImapFolder.Thread() method is what you'd want to use if the IMAP server supports the THREAD extension: