Table of Contents

Method CreateForThread

Namespace
MailFathom.Application.Emails.GetEmailContent
Assembly
MailFathom.Application.dll

CreateForThread(EmailThreadId, bool, bool)

Creates a request for the messages of one conversation.

public static GetEmailContentRequest CreateForThread(EmailThreadId threadId, bool includeSanitizedHtml = false, bool includeAttachmentDownloadLinks = false)

Parameters

threadId EmailThreadId

The conversation whose messages to read.

includeSanitizedHtml bool

Whether to also produce the sanitized HTML representation of each body.

includeAttachmentDownloadLinks bool

Whether to mint a link for each attachment rather than only describe it.

Returns

GetEmailContentRequest

The validated request.

Remarks

Nothing is counted here, because nothing has been resolved yet: how many messages the conversation holds is what reading it answers. The bound is the same MaximumEmails a caller's own list is held to, applied to the conversation's order, and the identities it left out are named in the result so a second call asks for them directly.