Module GapiGmailV1Model.Message

type t = {
historyId : string;

The ID of the last history record that modified this message.

id : string;

The immutable ID of the message.

internalDate : int64;

The internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the Date header. However, for API-migrated mail, it can be configured by client to be based on the Date header.

labelIds : string list;

List of IDs of labels applied to this message.

payload : MessagePart.t;

The parsed email structure in the message parts.

raw : string;

The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.

sizeEstimate : int;

Estimated size in bytes of the message.

snippet : string;

A short part of the message text.

threadId : string;

The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:

  • The requested threadId must be specified on the Message or Draft.Message you supply with your request.
  • The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard.
  • The Subject headers must match.
}
val historyId : (t, string) GapiLens.t
val id : (t, string) GapiLens.t
val internalDate : (t, int64) GapiLens.t
val labelIds : (tstring list) GapiLens.t
val payload : (tMessagePart.t) GapiLens.t
val raw : (t, string) GapiLens.t
val sizeEstimate : (t, int) GapiLens.t
val snippet : (t, string) GapiLens.t
val threadId : (t, string) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t