pub struct JmapEmail {Show 26 fields
pub id: Option<String>,
pub blob_id: Option<String>,
pub thread_id: Option<String>,
pub mailbox_ids: Option<BTreeMap<String, bool>>,
pub keywords: Option<BTreeMap<String, bool>>,
pub size: Option<u64>,
pub received_at: Option<String>,
pub message_id: Option<Vec<String>>,
pub in_reply_to: Option<Vec<String>>,
pub references: Option<Vec<String>>,
pub sender: Option<Vec<JmapEmailAddress>>,
pub from: Option<Vec<JmapEmailAddress>>,
pub to: Option<Vec<JmapEmailAddress>>,
pub cc: Option<Vec<JmapEmailAddress>>,
pub bcc: Option<Vec<JmapEmailAddress>>,
pub reply_to: Option<Vec<JmapEmailAddress>>,
pub subject: Option<String>,
pub sent_at: Option<String>,
pub body_structure: Option<JmapEmailBodyPart>,
pub body_values: Option<BTreeMap<String, JmapEmailBodyValue>>,
pub text_body: Option<Vec<JmapEmailBodyPart>>,
pub html_body: Option<Vec<JmapEmailBodyPart>>,
pub attachments: Option<Vec<JmapEmailBodyPart>>,
pub has_attachment: Option<bool>,
pub preview: Option<String>,
pub headers: Option<Vec<JmapEmailHeader>>,
}Expand description
A JMAP Email object (RFC 8621 §4.1).
Fields§
§id: Option<String>The server-assigned email id.
blob_id: Option<String>Blob ID for the raw RFC 5322 message.
thread_id: Option<String>The id of the thread the email belongs to.
mailbox_ids: Option<BTreeMap<String, bool>>{ mailbox-id -> true } for each mailbox containing the email.
keywords: Option<BTreeMap<String, bool>>{ keyword -> true }. Standard: $seen, $flagged, $answered,
$draft.
size: Option<u64>Size of the raw RFC 5322 message, in bytes.
received_at: Option<String>RFC 3339 receive time.
message_id: Option<Vec<String>>The Message-ID header values.
in_reply_to: Option<Vec<String>>The In-Reply-To header values.
references: Option<Vec<String>>The References header values.
sender: Option<Vec<JmapEmailAddress>>The Sender header addresses.
from: Option<Vec<JmapEmailAddress>>The From header addresses.
to: Option<Vec<JmapEmailAddress>>The To header addresses.
cc: Option<Vec<JmapEmailAddress>>The Cc header addresses.
bcc: Option<Vec<JmapEmailAddress>>The Bcc header addresses.
reply_to: Option<Vec<JmapEmailAddress>>The Reply-To header addresses.
subject: Option<String>The Subject header value.
sent_at: Option<String>Date header as an RFC 3339 string.
body_structure: Option<JmapEmailBodyPart>The full MIME structure of the message.
body_values: Option<BTreeMap<String, JmapEmailBodyValue>>{ part-id -> body } for text parts.
text_body: Option<Vec<JmapEmailBodyPart>>The text/plain parts to display as the message body.
html_body: Option<Vec<JmapEmailBodyPart>>The text/html parts to display as the message body.
attachments: Option<Vec<JmapEmailBodyPart>>The parts to display as attachments.
has_attachment: Option<bool>Whether any part is an attachment.
preview: Option<String>Short plaintext preview (up to 256 chars).
headers: Option<Vec<JmapEmailHeader>>Raw headers in order of appearance.