开发者

Unable to migrate mails to "Trash"

开发者 https://www.devze.com 2023-01-02 07:50 出处:网络
I am migrating some mails to \'TRASH\' in Google Apps. Using Google API Ver 2: Code Sample : MailItemEntry[] entries = new MailItemEntry[1];

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 Rfc822M开发者_Python百科sgElement(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


Google Apps or Gmail keeps only Last 30 Days mails in Trash.

0

精彩评论

暂无评论...
验证码 换一张
取 消