Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

ImapClient.SendCustomCommand example?

$
0
0
Is there an example of how to use the SendCustomCommand method?  In particular, I'm trying to access GMail's X-GM-MSGID IMAP extension. (https://developers.google.com/gmail/imap_extensions)  

I'm using the following code.

//Returns the IMAP uid
string uid = client.AppendMessage(DRAFTSFOLDER, message);
                
client.SelectFolder(DRAFTSFOLDER);
ImapResponse response = client.SendCustomCommand(string.Concat("FETCH ", uid, " (X-GM-MSGID)"));

The Response.Message property contains "Success", but the ResponseLines property is an empty list.

I appreciate your help.

Viewing all articles
Browse latest Browse all 1367

Latest Images

Trending Articles



Latest Images