Table of Contents

Interface IMailboxSession

Namespace
MailFathom.Application.Synchronization.Sessions
Assembly
MailFathom.Application.dll

Represents a read-only mailbox folder session.

public interface IMailboxSession : IAsyncDisposable
Inherited Members

Remarks

An implementation is free to re-establish its connection between operations, so a session outlives one dropped socket. What it may never do is change what the folder is: a reselected folder that reports a new UIDVALIDITY is a different folder, and the session reports MailboxFolderRecreatedException instead of serving it.

Methods

FetchEmailContentWithoutSettingSeenAsync(EmailOccurrenceId, long, CancellationToken)

Fetches raw MIME content with a BODY.PEEK-style operation that preserves the remote Seen flag.

GetEmailBatchAfterAsync(ImapUid?, int, MailSynchronizationWindow, CancellationToken)

Gets a bounded remote email metadata page after the supplied checkpoint UID.

GetUidValidityAsync(CancellationToken)

Gets the selected folder UIDVALIDITY value.

ObserveWindowWithoutSettingSeenAsync(IReadOnlyList<ImapUid>, ulong?, CancellationToken)

Reports which of the supplied occurrences the folder still holds, with the flags the server shows for them.