textproto

package
v0.0.0-...-321511a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 15 Imported by: 2

Documentation

Overview

Provides utilities to parse and format messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, encoding, charset string) io.Reader

func DecodeWord

func DecodeWord(word string) string

Decode a RFC2047 word

func FormatEmail

func FormatEmail(email *backend.Email) string

func FormatHeader

func FormatHeader(h textproto.MIMEHeader) string

func FormatMessage

func FormatMessage(msg *backend.Message) string

func FormatOutgoingMessage

func FormatOutgoingMessage(msg *backend.OutgoingMessage) string

func GetMessageHeader

func GetMessageHeader(msg *backend.Message) textproto.MIMEHeader

func GetOutgoingMessageHeader

func GetOutgoingMessageHeader(msg *backend.OutgoingMessage) textproto.MIMEHeader

func ParseEmail

func ParseEmail(addr *mail.Address) *backend.Email

func ParseMessageHeader

func ParseMessageHeader(msg *backend.Message, header *mail.Header)

Types

This section is empty.

Directories

Path Synopsis
Provides a chunk splitter.
Provides a chunk splitter.

Jump to

Keyboard shortcuts

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