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
threadIdEmailThreadIdThe conversation whose messages to read.
includeSanitizedHtmlboolWhether to also produce the sanitized HTML representation of each body.
includeAttachmentDownloadLinksboolWhether 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.