Creating Plot Twists
    Preparing search index...

    Type Alias ImapMailboxStatus

    Status of a selected mailbox.

    type ImapMailboxStatus = {
        name: string;
        exists: number;
        recent: number;
        uidValidity: number;
        uidNext: number;
        unseen?: number;
        highestModSeq?: number;
    }
    Index

    Properties

    name: string

    Mailbox name

    exists: number

    Total number of messages

    recent: number

    Number of recent messages

    uidValidity: number

    UID validity value (changes if UIDs are reassigned)

    uidNext: number

    Next UID to be assigned

    unseen?: number

    Number of unseen messages (may be absent)

    highestModSeq?: number

    The mailbox's highest mod-sequence value (CONDSTORE / RFC 7162), when the server advertises it. A monotonic counter that advances whenever a message is added, expunged, or has its flags changed, so a connector can persist it as a "since last poll" cursor and skip re-scanning a mailbox whose value hasn't moved. Absent when the server or the specific mailbox does not support mod-sequences (e.g. it reports NOMODSEQ). Returned as a number; a server with an astronomically large mod-sequence counter could in theory exceed safe-integer precision, though real mailboxes stay far below that.