Table of Contents

Class MailboxFolderRecreatedException

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

Indicates that a mailbox session was re-established onto a folder the server has recreated since it opened.

public sealed class MailboxFolderRecreatedException : MailFathomException, ISerializable
Inheritance
MailboxFolderRecreatedException
Implements
Inherited Members

Remarks

A recovered connection re-selects the folder, and the server is free to answer with a new UIDVALIDITY, which means every UID the session has handed out so far names a different email than the same number does now. Continuing would attach the recovered folder's emails to the previous folder's checkpoint, so the run stops instead. Nothing is lost: the next run reads the new UIDVALIDITY from an empty checkpoint and re-synchronizes the folder from its start.

Constructors

MailboxFolderRecreatedException(MailAccountId, MailFolderAlias, ImapUidValidity, ImapUidValidity)

Initializes a new recreated-folder failure naming both observed UIDVALIDITY values.

Properties

AccountId

Gets the account whose folder was recreated.

ErrorCode

Gets the stable code identifying this failure to a boundary that must report it without naming a type.

FolderAlias

Gets the folder that was recreated.

ReselectedUidValidity

Gets the UIDVALIDITY observed after the connection recovered.

SessionUidValidity

Gets the UIDVALIDITY the session opened with.