mail

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: MIT Imports: 2 Imported by: 5

Documentation

Overview

Package mail is an implementation of JSON Metal Application Protocol (JMAP) for MAIL (RFC 8621)

Index

Constants

View Source
const (
	// The Email event type
	EmailEvent jmap.EventType = "Email"

	// The EmailDelivery event type. This is a subset of an EmailEvent
	// subscription and only sends notifications when a new email has been
	// delivered, as opposed to any change for objects of type Email
	EmailDeliveryEvent jmap.EventType = "EmailDelivery"

	// The EmailSubmission event type
	EmailSubmissionEvent jmap.EventType = "EmailSubmission"

	// The Identity event type
	IdentityEvent jmap.EventType = "Identity"

	// The Mailbox event type
	MailboxEvent jmap.EventType = "Mailbox"

	// The Thread event type
	ThreadEvent jmap.EventType = "Thread"

	// The VacationResponse event type
	VacationResponseEvent jmap.EventType = "VacationResponse"
)
View Source
const URI jmap.URI = "urn:ietf:params:jmap:mail"

urn:ietf:params:jmap:mail represents support for the Mailbox, Thread, Email, and SearchSnippet data types and associated API methods

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
}

An Email address

func (*Address) String added in v0.2.0

func (a *Address) String() string

type Mail

type Mail struct {
	MaxMailboxesPerEmail       uint64 `json:"maxMailboxesPerEmail"`
	MaxMailboxDepth            uint64 `json:"maxMailboxDepth"`
	MaxSizeMailboxName         uint64 `json:"maxSizeMailboxName"`
	MaxSizeAttachmentsPerEmail uint64 `json:"maxSizeAttachmentsPerEmail"`

	// A list of all values the server supports for sorting
	EmailQuerySortOptions []string `json:"emailQuerySortOptions"`

	MayCreateTopLevelMailbox bool `json:"mayCreateTopLevelMailbox"`
}

func (*Mail) New

func (m *Mail) New() jmap.Capability

func (*Mail) URI

func (m *Mail) URI() jmap.URI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL