Documentation ¶
Overview ¶
Package backendutil provides utility functions to implement IMAP backends.
Index ¶
- func FetchBodySection(header textproto.Header, body io.Reader, section *imap.BodySectionName) (imap.Literal, error)
- func FetchBodyStructure(header textproto.Header, body io.Reader, extended bool) (*imap.BodyStructure, error)
- func FetchEnvelope(h textproto.Header) (*imap.Envelope, error)
- func Match(e *message.Entity, seqNum, uid uint32, date time.Time, flags []string, ...) (bool, error)
- func UpdateFlags(current []string, op imap.FlagsOp, flags []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchBodySection ¶
func FetchBodySection(header textproto.Header, body io.Reader, section *imap.BodySectionName) (imap.Literal, error)
FetchBodySection extracts a body section from a message.
func FetchBodyStructure ¶
func FetchBodyStructure(header textproto.Header, body io.Reader, extended bool) (*imap.BodyStructure, error)
FetchBodyStructure computes a message's body structure from its content.
func FetchEnvelope ¶
FetchEnvelope returns a message's envelope from its header.
func Match ¶
func Match(e *message.Entity, seqNum, uid uint32, date time.Time, flags []string, c *imap.SearchCriteria) (bool, error)
Match returns true if a message and its metadata matches the provided criteria.
func UpdateFlags ¶
UpdateFlags executes a flag operation on the flag set current.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.