Unable to migrate mails to "Trash"

Posted by Preeti on Stack Overflow See other posts from Stack Overflow or by Preeti
Published on 2010-06-07T10:20:24Z Indexed on 2010/06/07 10:22 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

Hi,

I am migrating some mails to 'TRASH' in Google Apps.

Using Google API Ver 2:

Code Sample :

MailItemEntry[] entries = new MailItemEntry[1];
entries[0]              = new MailItemEntry();
entries[0].Rfc822Msg    = new Rfc822MsgElement(msg);
entries[0].MailItemProperties.Add(MailItemPropertyElement.TRASH);                                  

I tried with :

entries[0].Labels.Add(new LabelElement("Trash"));

How can i migrate mails to "TRASH" in Google Apps ?

Thanx

© Stack Overflow or respective owner

Related posts about c#

Related posts about email