GmailApp getAttachments() (#30444)

Advanced parameters to get all the attachments for any Gmail message.
This commit is contained in:
Amit Agarwal
2018-11-14 14:41:52 -08:00
committed by Pranav Senthilnathan
parent f7b71c452a
commit 208cfa64ac
+18
View File
@@ -187,6 +187,23 @@ declare namespace GoogleAppsScript {
replyTo?: string;
}
/**
* Options for a Gmail Attachments.
*/
export type GmailAttachmentOptions = {
/**
* If the returned array of Blob attachments should include inline images.
*/
includeInlineImages?: boolean;
/**
* If the returned array of Blob attachments should include regular (non-inline) attachments.
*/
includeAttachments?: boolean;
/**
* A comma-separated list of email addresses to BCC.
*/
}
/**
* A user-created label in a user's Gmail account.
*/
@@ -213,6 +230,7 @@ declare namespace GoogleAppsScript {
forward(recipient: string): GmailMessage;
forward(recipient: string, options: GmailDraftOptions): GmailMessage;
getAttachments(): GmailAttachment[];
getAttachments(options: GmailAttachmentOptions): GmailAttachment[];
getBcc(): string;
getBody(): string;
getCc(): string;