Documentation ¶
Overview ¶
Package tequat implements parsing of mail messages into categories of "Text, Quotes, Attachment".
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetUnique ¶
func GetUnique(header textproto.MIMEHeader, key string) string
Types ¶
type Atom ¶
type Atom interface {
// contains filtered or unexported methods
}
type Attachment ¶
type Attachment struct { Inline bool // Header should contain a singular, non-empty value keyed "Content-Type". // Header may be nil. Header textproto.MIMEHeader Data []byte }
func (Attachment) ContentType ¶
func (attachment Attachment) ContentType() string
func (Attachment) Ext ¶
func (attachment Attachment) Ext() string
may be empty TODO This is not the whole story. (See: "Content-Type: application/pdf; name=..." or "Content-Disposition: attachment; filename=...")
type AttachmentStore ¶
type AttachmentStore struct {
// contains filtered or unexported fields
}
func NewAttachmentStore ¶
func NewAttachmentStore() *AttachmentStore
func (*AttachmentStore) Get ¶
func (as *AttachmentStore) Get(asid AttachmentStoreID) (contenttype string, r io.Reader, ok bool)
func (*AttachmentStore) Put ¶
func (as *AttachmentStore) Put(attachment Attachment) (AttachmentStoreID, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.