Documentation ¶
Overview ¶
Package gmailparser implements a way to parse emails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessageBody ¶
func GetMessageBody(parts []*gmail.MessagePart) string
GetMessageBody finds the HTML body of an email.
func GetMessageHeader ¶
GetMessageHeader goes through a list of headers and returns the header where the name matches the one we want.
func GetMessageSender ¶
func GetMessageSender(headers []*gmail.MessagePartHeader) string
GetMessageSender goes through the headers to find the From header.
func GetMessageSubject ¶
func GetMessageSubject(headers []*gmail.MessagePartHeader) string
GetMessageSubject goes through the headers to find the Subject header.
Types ¶
Click to show internal directories.
Click to hide internal directories.