Skip to Content

The ExpungedMessageMeta type of the TypeScript SDK, which messages.list take or answer.

type ExpungedMessageMeta = MessageMeta & {
  expungedAt: number
  expungedLabels: string[]
  purgeAfter: number
}

Fields

FieldTypeDescription
expungedAtnumberTimestamp when the message was expunged, in epoch seconds
expungedLabelsstring[]The labels this row literally held at the moment it was expunged. For a message deleted the ordinary way that is ["Trash"], because the delete moved it there first. To show or act on where it will actually go, read restoresTo.
purgeAfternumberTimestamp after which message will be permanently purged in epoch seconds

Used by

MethodWhat it does
messages.listList mailbox messages

On this page