pai
    Preparing search index...

    Type Alias MailMessage

    One message from mailRead.

    type MailMessage = {
        attachments: { filename: string | null; size: number }[];
        date: string | null;
        folder: string;
        from: string;
        message_id: string | null;
        subject: string;
        text: string;
        to: string;
        uid: number;
    }
    Index
    attachments: { filename: string | null; size: number }[]

    The attachments, listed but not downloaded.

    Type Declaration

    • filename: string | null

      The attachment's file name. null when it has none.

    • size: number

      Its size in bytes.

    date: string | null

    When the message was sent, as an ISO 8601 time. null when it has no date.

    folder: string

    The folder it was read from.

    from: string

    The sender.

    message_id: string | null

    The Message-ID header, for a reply's In-Reply-To. null when it has none.

    subject: string

    The subject line.

    text: string

    The plain text body, cut at 20,000 characters.

    to: string

    The recipients.

    uid: number

    The message's id in its folder.