Method FindByMessageIdentifierAsync
- Namespace
- MailFathom.Application.Emails.Threads
- Assembly
- MailFathom.Application.dll
FindByMessageIdentifierAsync(IPersistenceSession, EmailThreadId, string, CancellationToken)
Reads the messages of one conversation that carry a given message identifier.
Task<IReadOnlyList<ThreadedEmail>> FindByMessageIdentifierAsync(IPersistenceSession session, EmailThreadId threadId, string internetMessageId, CancellationToken cancellationToken)
Parameters
sessionIPersistenceSessionThe transaction the reading is part of.
threadIdEmailThreadIdThe conversation to search.
internetMessageIdstringThe identifier to match on.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<IReadOnlyList<ThreadedEmail>>
The matching messages, which is more than one when the same message is mirrored in two folders.