vendredi 9 janvier 2015

Reading the content of a received calendar invite


Vote count:

0




I am writing a script that read and process calendar invites received on my e-mail account.


Problem is that:



//there is only one message that is the result of this filter, and it contains a calendar invite
var threads = GmailApp.search('is:unread from:xxx@yyy.com has:attachment',0,10);
var msgs = GmailApp.getMessagesForThreads(threads);
var attachments = msgs[0][0].getAttachments();


attachments = 0, meaning that while the gmail filter considers that a calendar invite is an attachment and filters it correctly, Google Apps Scripts apparently does not consider calendar invites as an attachment.


How to programmatically read a e-mail that has a calendar invite?


Best,


OP



asked 1 min ago







Reading the content of a received calendar invite

Aucun commentaire:

Enregistrer un commentaire