Karta. Inbound. Formats. Postmark
(Karta v1.0.0)
Postmark's inbound webhook: the JSON document Postmark posts for a
received message, with the raw message included (RawEmail), so an
Action Mailbox Postmark ingress (params.require("RawEmail")) takes
Karta's post unchanged.
The fields are Postmark's: From, FromName, FromFull, To,
ToFull, Cc, CcFull, Bcc, BccFull, OriginalRecipient,
ReplyTo, Subject, MessageID, Date, MailboxHash,
TextBody, HtmlBody, StrippedTextReply (empty; Karta does not parse
replies), Tag, Headers (every field as {Name, Value}), Attachments
({Name, Content, ContentType, ContentLength, ContentID}; Content is
base64, ContentID empty) and RawEmail, the message as received.
To and OriginalRecipient are the delivery's address, never another
recipient of the message; MailboxHash is that address's +tag
("" when it has none). MessageStream is inbound. RawEmail is
written as UTF-8 (bytes that are not are replaced), because JSON strings
are text; use the raw formats for a byte-exact copy.
The URL's user name and password, if it had one, are sent as Basic authentication; Postmark's own ingress checks them.
Summary
Functions
The request's headers and body.
Functions
@spec build( Karta.Inbound.Endpoint.t(), Karta.Inbound.Delivery.t(), Karta.Messages.Message.t(), binary(), Karta.Inbound.MailFields.t(), DateTime.t() ) :: {[{String.t(), String.t()}], binary()}
The request's headers and body.