Google Apps Script API
Preparing search index...
google-apps-script-events
GoogleAppsScript
Gmail
GmailThread
Interface GmailThread
A thread in a user's Gmail account.
interface
GmailThread
{
addLabel
(
label
:
GmailLabel
)
:
GmailThread
;
createDraftReply
(
body
:
string
)
:
GmailDraft
;
createDraftReply
(
body
:
string
,
options
:
GmailReplyOptions
)
:
GmailDraft
;
createDraftReplyAll
(
body
:
string
)
:
GmailDraft
;
createDraftReplyAll
(
body
:
string
,
options
:
GmailReplyOptions
)
:
GmailDraft
;
getFirstMessageSubject
()
:
string
;
getId
()
:
string
;
getLabels
()
:
GmailLabel
[]
;
getLastMessageDate
()
:
GoogleAppsScript
.
Base
.
Date
;
getMessageCount
()
:
number
;
getMessages
()
:
GmailMessage
[]
;
getPermalink
()
:
string
;
hasStarredMessages
()
:
boolean
;
isImportant
()
:
boolean
;
isInChats
()
:
boolean
;
isInInbox
()
:
boolean
;
isInPriorityInbox
()
:
boolean
;
isInSpam
()
:
boolean
;
isInTrash
()
:
boolean
;
isUnread
()
:
boolean
;
markImportant
()
:
GmailThread
;
markRead
()
:
GmailThread
;
markUnimportant
()
:
GmailThread
;
markUnread
()
:
GmailThread
;
moveToArchive
()
:
GmailThread
;
moveToInbox
()
:
GmailThread
;
moveToSpam
()
:
GmailThread
;
moveToTrash
()
:
GmailThread
;
refresh
()
:
GmailThread
;
removeLabel
(
label
:
GmailLabel
)
:
GmailThread
;
reply
(
body
:
string
)
:
GmailThread
;
reply
(
body
:
string
,
options
:
GmailAdvancedOptions
)
:
GmailThread
;
replyAll
(
body
:
string
)
:
GmailThread
;
replyAll
(
body
:
string
,
options
:
GmailAdvancedOptions
)
:
GmailThread
;
}
Index
Methods
add
Label
create
Draft
Reply
create
Draft
Reply
All
get
First
Message
Subject
get
Id
get
Labels
get
Last
Message
Date
get
Message
Count
get
Messages
get
Permalink
has
Starred
Messages
is
Important
is
In
Chats
is
In
Inbox
is
In
Priority
Inbox
is
In
Spam
is
In
Trash
is
Unread
mark
Important
mark
Read
mark
Unimportant
mark
Unread
move
To
Archive
move
To
Inbox
move
To
Spam
move
To
Trash
refresh
remove
Label
reply
reply
All
Methods
add
Label
addLabel
(
label
:
GmailLabel
)
:
GmailThread
Parameters
label
:
GmailLabel
Returns
GmailThread
create
Draft
Reply
createDraftReply
(
body
:
string
)
:
GmailDraft
Parameters
body
:
string
Returns
GmailDraft
createDraftReply
(
body
:
string
,
options
:
GmailReplyOptions
)
:
GmailDraft
Parameters
body
:
string
options
:
GmailReplyOptions
Returns
GmailDraft
create
Draft
Reply
All
createDraftReplyAll
(
body
:
string
)
:
GmailDraft
Parameters
body
:
string
Returns
GmailDraft
createDraftReplyAll
(
body
:
string
,
options
:
GmailReplyOptions
)
:
GmailDraft
Parameters
body
:
string
options
:
GmailReplyOptions
Returns
GmailDraft
get
First
Message
Subject
getFirstMessageSubject
()
:
string
Returns
string
get
Id
getId
()
:
string
Returns
string
get
Labels
getLabels
()
:
GmailLabel
[]
Returns
GmailLabel
[]
get
Last
Message
Date
getLastMessageDate
()
:
GoogleAppsScript
.
Base
.
Date
Returns
GoogleAppsScript
.
Base
.
Date
get
Message
Count
getMessageCount
()
:
number
Returns
number
get
Messages
getMessages
()
:
GmailMessage
[]
Returns
GmailMessage
[]
get
Permalink
getPermalink
()
:
string
Returns
string
has
Starred
Messages
hasStarredMessages
()
:
boolean
Returns
boolean
is
Important
isImportant
()
:
boolean
Returns
boolean
is
In
Chats
isInChats
()
:
boolean
Returns
boolean
is
In
Inbox
isInInbox
()
:
boolean
Returns
boolean
is
In
Priority
Inbox
isInPriorityInbox
()
:
boolean
Returns
boolean
is
In
Spam
isInSpam
()
:
boolean
Returns
boolean
is
In
Trash
isInTrash
()
:
boolean
Returns
boolean
is
Unread
isUnread
()
:
boolean
Returns
boolean
mark
Important
markImportant
()
:
GmailThread
Returns
GmailThread
mark
Read
markRead
()
:
GmailThread
Returns
GmailThread
mark
Unimportant
markUnimportant
()
:
GmailThread
Returns
GmailThread
mark
Unread
markUnread
()
:
GmailThread
Returns
GmailThread
move
To
Archive
moveToArchive
()
:
GmailThread
Returns
GmailThread
move
To
Inbox
moveToInbox
()
:
GmailThread
Returns
GmailThread
move
To
Spam
moveToSpam
()
:
GmailThread
Returns
GmailThread
move
To
Trash
moveToTrash
()
:
GmailThread
Returns
GmailThread
refresh
refresh
()
:
GmailThread
Returns
GmailThread
remove
Label
removeLabel
(
label
:
GmailLabel
)
:
GmailThread
Parameters
label
:
GmailLabel
Returns
GmailThread
reply
reply
(
body
:
string
)
:
GmailThread
Parameters
body
:
string
Returns
GmailThread
reply
(
body
:
string
,
options
:
GmailAdvancedOptions
)
:
GmailThread
Parameters
body
:
string
options
:
GmailAdvancedOptions
Returns
GmailThread
reply
All
replyAll
(
body
:
string
)
:
GmailThread
Parameters
body
:
string
Returns
GmailThread
replyAll
(
body
:
string
,
options
:
GmailAdvancedOptions
)
:
GmailThread
Parameters
body
:
string
options
:
GmailAdvancedOptions
Returns
GmailThread
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
Label
create
Draft
Reply
create
Draft
Reply
All
get
First
Message
Subject
get
Id
get
Labels
get
Last
Message
Date
get
Message
Count
get
Messages
get
Permalink
has
Starred
Messages
is
Important
is
In
Chats
is
In
Inbox
is
In
Priority
Inbox
is
In
Spam
is
In
Trash
is
Unread
mark
Important
mark
Read
mark
Unimportant
mark
Unread
move
To
Archive
move
To
Inbox
move
To
Spam
move
To
Trash
refresh
remove
Label
reply
reply
All
Google Apps Script API
Loading...
A thread in a user's Gmail account.