Table of Contents

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

session IPersistenceSession

The transaction the reading is part of.

threadId EmailThreadId

The conversation to search.

internetMessageId string

The identifier to match on.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<IReadOnlyList<ThreadedEmail>>

The matching messages, which is more than one when the same message is mirrored in two folders.