Magidoc

getEmailThread
Query

Fetch all messages for a provider mail thread by thread ID. Unlike getEmails, this does not depend on the currently loaded mailbox page, so draft threads can render their prior context.

Arguments

#

threadId

ID !
Non-null

providerId

Optional provider account ID for shared/secondary email accounts

includeHtmlBody

If true, return provider HTML body instead of extracted plain text.

Response

#

Returns [MailMessage !]!.

Example

#