@squidcloud/client
    Preparing search index...

    Interface MailReceivedPayload

    The payload of a MAIL_RECEIVED_EVENT_TYPE event. Squid stores no copy of the email.

    interface MailReceivedPayload {
        attachments: MailAttachment[];
        cc: MailAddress[];
        folder: string;
        from: MailAddress;
        htmlPartId?: string;
        inReplyTo?: string;
        integrationId: string;
        isTextTruncated: boolean;
        mailboxAddress: string;
        mailboxDate?: string;
        mailboxId: string;
        messageId?: string;
        references?: string[];
        replyTo: MailAddress[];
        schemaVersion: 1;
        sentAt?: string;
        subject?: string;
        text?: string;
        textPartId?: string;
        to: MailAddress[];
        uid: number;
        uidValidity: string;
    }
    Index
    attachments: MailAttachment[]

    The attachments of the email.

    The Cc recipients.

    folder: string

    The watched folder.

    The sender selected by the sender rules. The header can be forged.

    htmlPartId?: string

    The IMAP part that holds the HTML body. Sender-controlled, so never render it as trusted markup.

    inReplyTo?: string

    The In-Reply-To header.

    integrationId: string

    The Mail integration that received the email.

    isTextTruncated: boolean

    Whether text holds only part of the body. The full body is in textPartId.

    mailboxAddress: string

    The watched mailbox.

    mailboxDate?: string

    The provider's INTERNALDATE as an ISO string. Copied or imported mail keeps its original value.

    mailboxId: string

    An opaque id of the watched mailbox and folder.

    messageId?: string

    The Message-ID header. Sender-controlled, so not unique.

    references?: string[]

    The References header.

    replyTo: MailAddress[]

    The Reply-To addresses.

    schemaVersion: 1

    The payload version.

    sentAt?: string

    The Date header as an ISO string. Sender-controlled.

    subject?: string

    The decoded subject.

    text?: string

    The plain-text body, cut to fit the event.

    textPartId?: string

    The IMAP part that holds the full plain-text body.

    The To recipients.

    uid: number

    The IMAP UID of the email.

    uidValidity: string

    The IMAP UIDVALIDITY of the folder, as a decimal string.