Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripOutAttachments ¶
func StripOutAttachments(p *Email)
StripOutAttachments removes raw attachments from a message, in order to save same space on its JSON encoded representation. TODO: maybe this would be better implemented in ParseFromReaderAsPartsWithBody instead, in a immutable fashion?
Types ¶
type Email ¶
type Part ¶
type Part struct { ContentType string `json:"content_type"` ContentDisposition *string `json:"content_disposition,omitempty"` AsText *string `json:"text,omitempty"` RawValue []byte `json:"raw,omitempty"` Parsed *Email `json:"parsed,omitempty"` Size *int `json:"size,omitempty"` Checksum *uint64 `json:"checksum,omitempty"` DeliveryStatus []map[string][]string `json:"delivery_status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.