This project is read-only.

Getting GMailMessageId and GmailThread value NULL

Topics: Help requests
Jan 21, 2015 at 10:55 AM
Hey pavel,

I am using your library for fetching emails from different servers like Gmail, hotmail. With gmail its all good but when i came to hotmail all were going correct, the only problem is that i have got NULL value of GMailMessageId and GmailThread. To get this i have used :

MessageFetchMode => GMailThreads,GMailExtendedData also but result was same NULL.
I need to get GMailThreads value, So how can i achieve this? Please help me out.

Thanks in advance.
Jan 23, 2015 at 3:05 PM
Hi sauravAnand,

MessageFetchMode is a bit flag and to fetch the GMail specific data you need to add the GMailExtendedData flag to it, combining with another one, such as MessageFetchMode.Basic or MessageFetchMode.Full. Otherwise the client will not fetch anything at all.

For reference you can look at the documentation, it has a sample for GMail.
// Request basic information and GMail mesage id, labels and thread id
client.Behavior.MessageFetchMode = MessageFetchMode.Basic |  MessageFetchMode.GMailExtendedData;