Spatio.Model.Email (spatio_sdk v0.0.2)

A single email message. The provider/accountId provenance fields tell clients which connected mail account this row came from (Gmail, Outlook, etc.) so multi-account list responses can be merged sensibly client-side.

Summary

Types

t()

@type t() :: %Spatio.Model.Email{
  accountId: String.t() | nil,
  attachments: [Spatio.Model.AttachmentMeta.t()] | nil,
  bcc: [String.t()] | nil,
  body: String.t(),
  cc: [String.t()] | nil,
  date: DateTime.t(),
  from: String.t(),
  html: boolean(),
  id: String.t(),
  inReplyTo: String.t() | nil,
  isRead: boolean(),
  isStarred: boolean(),
  labels: [String.t()] | nil,
  messageId: String.t() | nil,
  provider: String.t() | nil,
  references: [String.t()] | nil,
  snippet: String.t() | nil,
  subject: String.t(),
  threadId: String.t() | nil,
  to: [String.t()]
}

Functions

decode(value)