Table of Contents

Constructor CorrespondingDocument

Namespace
MailFathom.Application.Contacts.Correspondence
Assembly
MailFathom.Application.dll

CorrespondingDocument(StoredEmailId, int, string?, string, DateTimeOffset)

One document a contact sent, as an opened contact reports it.

public CorrespondingDocument(StoredEmailId StoredEmailId, int AttachmentPosition, string? FileName, string DeclaredMediaType, DateTimeOffset ReceivedAt)

Parameters

StoredEmailId StoredEmailId

The message the file arrived on, which is what a client reaches the file through.

AttachmentPosition int

Where the file sits in that message's walk, which is the second half of its identity.

FileName string

The name the sender wrote, or null where the part carried none.

DeclaredMediaType string

The type the sender declared, which is what a client draws an icon from and never what it trusts.

ReceivedAt DateTimeOffset

When the message carrying it arrived.

Remarks

Sent by them rather than merely passing between them: the message this file arrived on was written from one of the contact's own addresses. A file somebody else attached to a conversation this person was copied on is that person's document rather than this one's, and reporting it here would tell a reader that a contact sent them something they never sent.

The list is read from the attachment index rather than from the messages, so a file the derivation has not reached yet is absent. That is the honest answer for a mailbox still being worked through, and the list fills in as the derivation catches up rather than being recomputed by anything here. It also means the list is empty on a deployment whose attachment reading was never switched on, since nothing there ever wrote the index this reads — an empty list is that deployment's accurate answer rather than a mailbox without attachments.