Documentation ¶
Index ¶
- Constants
- func FromString(m *gmail.Message, inSent bool) string
- func GetHeader(m *gmail.Message, header string) string
- func GetHeaderPart(p *gmail.MessagePart, header string) string
- func HasLabel(labels []string, needle string) bool
- func ParseTime(s string) (time.Time, error)
- func TimeString(m *gmail.Message) string
Constants ¶
View Source
const ( Inbox = "INBOX" Unread = "UNREAD" Draft = "DRAFT" Important = "IMPORTANT" Spam = "SPAM" Starred = "STARRED" Trash = "TRASH" Sent = "SENT" )
Well known labels.
Variables ¶
This section is empty.
Functions ¶
func FromString ¶
FromString gets the source address, unless mail is sent, in which case get destination.
func GetHeaderPart ¶
func GetHeaderPart(p *gmail.MessagePart, header string) string
GetHeaderPart gets the value for a given header from a MessagePart.
func TimeString ¶
TimeString returns "Date" header as a useful string. (e.g. mail from today shows hours)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.