Skip to main content

Module compose

Module compose 

Source
Expand description

Mail the apps write and read when kernoid must not see it (RFC 0006, 5.3–5.4): a message built from its parts – here, because the server builds it otherwise (JMAP Email/set) and must not see the text –, and an encrypted message’s inner message read into its parts for display, with mail-parser (never sent back to the server’s Email/parse). Building is plain RFC 5322 and MIME: header fields with RFC 2047 encoded words where they are not ASCII, file names after RFC 2231, every body in base64.

Structs§

Attachment
A file to attach, its content base64.
Draft
What a message is built from. bcc is not written – it is the envelope’s.
Mailbox
An address: a name (may be empty) and the address itself.
Parsed
A message read into what an app shows.
Part
One part of a message as an app shows it.

Functions§

build
Builds the message of a draft.
parse
Reads a message into its parts.
part
The decoded content of a part of a message (an index of Part).