MessageReceivedNotification

@Serializable
@SerialName(value = "messageReceived")
class MessageReceivedNotification(val type: String, val owner: String, val emailAddressId: String, val sudoId: String, val messageId: String, val folderId: String, val encryptionStatus: EncryptionStatus, val subject: String?, val from: EmailMessage.EmailAddress, val replyTo: EmailMessage.EmailAddress? = null, val hasAttachments: Boolean, val sentAtEpochMs: Long, val receivedAtEpochMs: Long) : EmailAddressNotification

A messageReceived Email Service notification

Constructors

Link copied to clipboard
constructor(type: String, owner: String, emailAddressId: String, sudoId: String, messageId: String, folderId: String, encryptionStatus: EncryptionStatus, subject: String?, from: EmailMessage.EmailAddress, replyTo: EmailMessage.EmailAddress? = null, hasAttachments: Boolean, sentAtEpochMs: Long, receivedAtEpochMs: Long)

Properties

Link copied to clipboard
open override val emailAddressId: String

String Identifier of email address to which this notification pertains.

Link copied to clipboard

EncryptionStatus End-to-end encryption status of the message.

Link copied to clipboard

String Identifier of email folder in to which this message was stored on receipt.

Link copied to clipboard
Link copied to clipboard

Boolean Whether or not the received message has attachments.

Link copied to clipboard

String Identifier of received email message to which this notification corresponds.

Link copied to clipboard
open override val owner: String

String Subject identifier of user to whom the notification is addressed.

Link copied to clipboard

Long When the message was received.

Link copied to clipboard

EmailMessage.EmailAddress First replyTo address, if any, of the received message.

Link copied to clipboard

Long When the message was sent. Corresponds to the Date header of the message.

Link copied to clipboard

String Up to 140 characters of the received message's Subject if any.

Link copied to clipboard

String Identifier of Sudo owning the email address.

Link copied to clipboard
open override val type: String

String Type of notification. Always MessageReceivedNotification.TYPE