synco

package
v0.0.0-...-978862e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2012 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BodyOfType

func BodyOfType(msg *mail.Message, mimetype string) (body io.Reader, err error)

func Dial

func Dial(server *IMAPServer) (c *imap.Client)

func FetchAllUIDs

func FetchAllUIDs(c *imap.Client) (uids []uint32, err error)

func FetchMessages

func FetchMessages(c *imap.Client, uidSet *imap.SeqSet) (err error)

func HTMLBody

func HTMLBody(msg *mail.Message) (body string, err error)

func MultipartBodyOfType

func MultipartBodyOfType(msg *mail.Message, mimetype string) (body io.Reader, err error)

func PrintMail

func PrintMail(acct *IMAPAccount, query string)

func PrintMessageAsJSON

func PrintMessageAsJSON(msg *mail.Message, uid uint32)

func SearchUIDs

func SearchUIDs(c *imap.Client, query string) (uids []uint32, err error)

func TextBody

func TextBody(msg *mail.Message) (body string, err error)

Types

type IMAPAccount

type IMAPAccount struct {
	Username string
	Password string
	Server   *IMAPServer
}

type IMAPServer

type IMAPServer struct {
	Host string
	Port uint16
}

type UIDFetchJob

type UIDFetchJob struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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