Documentation ¶
Index ¶
Constants ¶
View Source
const URI jmap.URI = "urn:ietf:params:jmap:mdn"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability struct{}
The MDN Capability
func (*Capability) New ¶
func (m *Capability) New() jmap.Capability
func (*Capability) URI ¶
func (m *Capability) URI() jmap.URI
type Disposition ¶
type Disposition struct { // This MUST be one of the following strings: // - "manual-action" // - "automatic-action" ActionMode string `json:"actionMode,omitempty"` // This MUST be one of the following strings: // - "mdn-sent-manually" // - "mdn-sent-automatically" SendingMode string `json:"sendingMode,omitempty"` // This MUST be one of the following strings: // - "deleted" // - "dispatched" // - "displayed" // - "processed" Type string `json:"type,omitempty"` }
type MDN ¶
type MDN struct { ForEmailID jmap.ID `json:"forEmailId,omitempty"` Subject string `json:"subject,omitempty"` TextBody string `json:"textBody,omitempty"` IncludeOriginalmessage bool `json:"includeOriginalMessage,omitempty"` ReportingUA string `json:"reportinUA,omitempty"` Disposition *Disposition `json:"disposition,omitempty"` MDNGateway string `json:"mdnGateway,omitempty"` OriginalRecipient string `json:"originalRecipient,omitempty"` FinalRecipient string `json:"finalRecipient,omitempty"` OriginalMessageID string `json:"originalMessageId,omitempty"` Error []string `json:"error,omitempty"` ExtensionFields map[string]string `json:"extensionFields,omitempty"` }
A Message Delivery Notification (MDN) object https://www.rfc-editor.org/rfc/rfc9007.html#section-2
type Parse ¶
type Parse struct { Account jmap.ID `json:"accountId,omitempty"` BlobIDs []jmap.ID `json:"blobIds,omitempty"` }
Parse blobs as messages in the style of RFC5322 to get MDN objects https://www.rfc-editor.org/rfc/rfc9007.html#section-2.2
type ParseResponse ¶
type ParseResponse struct { Account jmap.ID `json:"accountId,omitempty"` Parsed map[jmap.ID]*MDN `json:"parsed,omitempty"` NotParsable []jmap.ID `json:"notParsable,omitempty"` NotFound []jmap.ID `json:"notFound,omitempty"` }
type Send ¶
type Send struct { Account jmap.ID `json:"accountId,omitempty"` IdentityID jmap.ID `json:"identityId,omitempty"` Send map[jmap.ID]*MDN `json:"send,omitempty"` OnSuccessUpdateEmail map[jmap.ID]*jmap.Patch `json:"onSuccessUpdateEmail,omitempty"` }
Sends an RFC5322 message from an MDN object https://www.rfc-editor.org/rfc/rfc9007.html#section-2.1
type SendResponse ¶
type SendResponse struct { Account jmap.ID `json:"accountId,omitempty"` Sent map[jmap.ID]*MDN `json:"sent,omitempty"` NotSent map[jmap.ID]*jmap.SetError `json:"notSent,omitempty"` }
Click to show internal directories.
Click to hide internal directories.