mail

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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