Documentation ¶
Index ¶
- Variables
- func BEncodingHeader(s string, charset string) string
- func DecodingHeader(s string) (string, error)
- func DecodingReader(enc string, r io.Reader) (io.Reader, error)
- func EncodingWriter(enc string, w io.Writer) (io.WriteCloser, error)
- func NewRFC822(w io.Writer) io.Writer
- func ParseAddress(addr string) (*mail.Address, error)
- func ParseAddressList(list string) ([]*mail.Address, error)
- func ParseDate(date string) (time.Time, error)
- func ParseMediaType(contentType string) (string, map[string]string, error)
- func QEncodingHeader(s string, charset string) string
- func RandomBoundary() string
- func TabWriter(w io.Writer, sep string, l int) io.Writer
- type DataFile
- type File
- type Node
- func (n *Node) Attachment() (string, bool)
- func (n *Node) Bcc() string
- func (n *Node) Body() (File, error)
- func (n *Node) BodyStructure() string
- func (n *Node) Cc() string
- func (n *Node) ContentDescription() string
- func (n *Node) ContentDisposition() string
- func (n *Node) ContentID() string
- func (n *Node) ContentTransferEncoding() string
- func (n *Node) ContentType() string
- func (n *Node) Date() string
- func (n *Node) From() string
- func (n *Node) Get(key string) string
- func (n *Node) InReplyTo() string
- func (n *Node) IsInline() bool
- func (n *Node) IsTextHtml() bool
- func (n *Node) IsTextPlain() bool
- func (n *Node) MessageID() string
- func (n *Node) References() string
- func (n *Node) ReplyTo() string
- func (n *Node) Section() string
- func (n *Node) Size() int64
- func (n *Node) Subject() string
- func (n *Node) To() string
- func (n *Node) Walk(f func(n *Node) error) error
- func (n *Node) Write(wr io.Writer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxDataFileSize = int64(1 << 20)
Functions ¶
func BEncodingHeader ¶
func DecodingHeader ¶
func EncodingWriter ¶
func QEncodingHeader ¶
func RandomBoundary ¶ added in v0.1.1
func RandomBoundary() string
Types ¶
type DataFile ¶
type DataFile struct {
// contains filtered or unexported fields
}
A FileHeader describes a file part of a multipart request.
type File ¶
File is an interface to access the file part of a multipart message. Its contents may be either stored in memory or on disk. If stored on disk, the File's underlying concrete type will be an *os.File.
type Node ¶
type Node struct { Header textproto.MIMEHeader Parts []*Node // contains filtered or unexported fields }
func (*Node) Attachment ¶
func (*Node) BodyStructure ¶ added in v0.1.2
func (*Node) ContentDescription ¶
func (*Node) ContentDisposition ¶
func (*Node) ContentTransferEncoding ¶
func (*Node) ContentType ¶
func (*Node) IsTextHtml ¶
func (*Node) IsTextPlain ¶
func (*Node) References ¶
Click to show internal directories.
Click to hide internal directories.