Documentation ¶
Index ¶
- Variables
- func ExportMessages(msgs chan *gmail.Message, total int64, pui *ui.ProgressUI, ...) *excelize.File
- func GetClient(config *oauth2.Config, TokenFile string, BatchMode bool, NoBrowser bool, ...) *http.Client
- func GetGmailSrv(TokenFile string, BatchMode bool, NoBrowser bool, NoTokenSave bool) (*gmail.Service, error)
- func GetLabelsByIdOrName(srv *gmail.Service, user string, refs ...string) ([]*gmail.Label, error)
- func GetMessages(srv *gmail.Service, messagesLimit int, pui *ui.ProgressUI, user string, ...) (chan *gmail.Message, int64)
- func ListLabels(srv *gmail.Service, user string) ([]*gmail.Label, error)
- func RemoveNils[C any | string](s []*C) []*C
- func SaveMessageFile(srv *gmail.Service, MessagesDir string, MessagesSeed *[]int32, user string, ...) (string, error)
- type LocalAttachment
- type SaveEml
- type SaveMsgAttachments
Constants ¶
This section is empty.
Variables ¶
View Source
var Creds []byte
Functions ¶
func ExportMessages ¶
func ExportMessages( msgs chan *gmail.Message, total int64, pui *ui.ProgressUI, saveMsgAttachments SaveMsgAttachments, saveEml SaveEml, NoHtmlBody bool, NoTextBody bool) *excelize.File
func GetClient ¶
func GetClient(config *oauth2.Config, TokenFile string, BatchMode bool, NoBrowser bool, NoTokenSave bool) *http.Client
Retrieve a token, saves the token, then returns the generated client.
func GetGmailSrv ¶
func GetLabelsByIdOrName ¶ added in v0.0.2
func GetMessages ¶
func ListLabels ¶
func RemoveNils ¶ added in v0.0.2
Types ¶
type SaveMsgAttachments ¶
type SaveMsgAttachments func(*gmail.Message) ([]*LocalAttachment, error)
Click to show internal directories.
Click to hide internal directories.