MessageFolder: {
    ID: string;
    IsSystemFolder?: boolean;
    MessageCount?: number;
    Name: string;
    ParentFolderID?: string;
    SystemFolderType?: "inbox" | "sent" | "drafts" | "trash" | "spam" | "archive" | "other";
    UnreadCount?: number;
}

Represents a folder/mailbox in the provider's system

Type declaration

  • ID: string

    The unique ID of the folder

  • Optional IsSystemFolder?: boolean

    Whether this is a system folder (Inbox, Sent, Drafts, etc.)

  • Optional MessageCount?: number

    The number of messages in the folder (if available)

  • Name: string

    The display name of the folder

  • Optional ParentFolderID?: string

    The ID of the parent folder, if any

  • Optional SystemFolderType?: "inbox" | "sent" | "drafts" | "trash" | "spam" | "archive" | "other"

    The type of system folder if IsSystemFolder is true

  • Optional UnreadCount?: number

    The number of unread messages in the folder (if available)