The Sudo Platform SDK representation of an email message.

EmailMessage

interface EmailMessage {
    bcc: EmailMessageAddress[];
    cc: EmailMessageAddress[];
    clientRefId?: string;
    createdAt: Date;
    date?: Date;
    direction: Direction;
    emailAddressId: string;
    encryptionStatus: EncryptionStatus;
    folderId: string;
    forwarded: boolean;
    from: EmailMessageAddress[];
    hasAttachments: boolean;
    id: string;
    owner: string;
    owners: Owner[];
    previousFolderId?: string;
    receivedAt?: Date;
    repliedTo: boolean;
    replyTo: EmailMessageAddress[];
    seen: boolean;
    sentAt?: Date;
    size: number;
    sortDate: Date;
    state: State;
    subject?: string;
    to: EmailMessageAddress[];
    updatedAt: Date;
    version: number;
}

Hierarchy (view full)

Properties

List of blind carbon copy recipients of the email message.

List of carbon copy recipients of the email message.

clientRefId?: string

Unique client reference identifier.

createdAt: Date

Date when the email message was created.

date?: Date
direction: Direction

Direction of the email message.

emailAddressId: string

Identifier of the email address that is associated with the email message - which address sent/received this message.

encryptionStatus: EncryptionStatus
folderId: string

Unique identifier of the email folder which the message is assigned to.

forwarded: boolean

True if the email message has been forwarded.

List of recipients that the email message was sent from.

hasAttachments: boolean

Whether or not message has attachments. Will be false if message was sent prior to this property being added

id: string

Unique identifier of the email message.

owner: string

Identifier of the user that owns the email message.

owners: Owner[]

List of identifiers of user/accounts associated with this email message.

previousFolderId?: string

Unique identifier of the previous email folder which the message resource was assigned to, if any.

receivedAt?: Date

Date when the email message was received.

repliedTo: boolean

True if the email message has been replied to.

List of recipients that a reply to this email message will be sent to.

seen: boolean

True if the user has previously seen the email message.

sentAt?: Date

Date when the email message was sent.

size: number

The size of the encrypted RFC822 data stored in the backend. This value is used to calculate the total storage used by an email address or user and used to enforce email storage related entitlements.

sortDate: Date

Date when the email message was processed by the service.

state: State

Current state of the email message.

subject?: string

Subject header of the email message.

List of recipients that the email message is being sent to.

updatedAt: Date

Date when the email message was last updated.

version: number