Constructor CorrespondingThread
- Namespace
- MailFathom.Application.Contacts.Correspondence
- Assembly
- MailFathom.Application.dll
CorrespondingThread(EmailThreadId, StoredEmailId, string?, DateTimeOffset)
One conversation a contact's addresses appear in, as an opened contact reports it.
public CorrespondingThread(EmailThreadId ThreadId, StoredEmailId LatestStoredEmailId, string? Subject, DateTimeOffset LastCorrespondedAt)
Parameters
ThreadIdEmailThreadIdThe conversation, which is what a client opens the exchange by.
LatestStoredEmailIdStoredEmailIdThe most recent message of it naming this person, so a client can open the message as well as the exchange.
SubjectstringWhat that message was about, or null where it carried no subject.
LastCorrespondedAtDateTimeOffsetWhen that message arrived.
Remarks
The message is the one that names this person rather than the conversation's own latest, and the subject and the instant are read off it for the same reason: what an opened contact answers is when this exchange last involved them, which a conversation that has run on without them would otherwise misreport as recent.
Nothing here is stored. Every field is computed from the mail index on the read, which is what keeps a contact from growing a second copy of a correspondence that the mailbox already holds.