Class CorrespondingDocument
- Namespace
- MailFathom.Application.Contacts.Correspondence
- Assembly
- MailFathom.Application.dll
One document a contact sent, as an opened contact reports it.
public sealed record CorrespondingDocument : IEquatable<CorrespondingDocument>
- Inheritance
-
CorrespondingDocument
- Implements
- Inherited Members
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.
Constructors
- CorrespondingDocument(StoredEmailId, int, string?, string, DateTimeOffset)
One document a contact sent, as an opened contact reports it.
Properties
- AttachmentPosition
Where the file sits in that message's walk, which is the second half of its identity.
- DeclaredMediaType
The type the sender declared, which is what a client draws an icon from and never what it trusts.
- ReceivedAt
When the message carrying it arrived.
- StoredEmailId
The message the file arrived on, which is what a client reaches the file through.