backendutil

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 9 Imported by: 38

Documentation

Overview

Package backendutil provides utility functions to implement IMAP backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchBodySection

func FetchBodySection(e *message.Entity, section *imap.BodySectionName) (imap.Literal, error)

FetchBodySection extracts a body section from a message.

func FetchBodyStructure

func FetchBodyStructure(e *message.Entity, extended bool) (*imap.BodyStructure, error)

FetchBodyStructure computes a message's body structure from its content.

func FetchEnvelope

func FetchEnvelope(h message.Header) (*imap.Envelope, error)

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

func UpdateFlags(current []string, op imap.FlagsOp, flags []string) []string

UpdateFlags executes a flag operation on the flag set current.

Types

This section is empty.

Jump to

Keyboard shortcuts

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