messages

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v0.2.3

func Delete(labelID string) (int64, error)

func Domains

func Domains(r []map[string]string) map[string]int

func GetNewMessages

func GetNewMessages(labelID string, maxCount int) ([]map[string]string, error)

func GetRaw

func GetRaw(labelID string, maxCount int) map[string][]byte

func Labels

func Labels() (map[string]string, error)

Labels - map of labels

func Reply

func Reply(replyID, msgID, from, to, subject, msg_to_send string) (string, error)

func ReplyAI added in v0.0.3

func ReplyAI(replyID, msgID, from, to, subject, msg_to_send, AImsg string) (string, error)

func ReplyAI2 added in v0.0.9

func ReplyAI2(replyID, msgID, from, to, subject, msg_to_send, AImsg string) (string, error)

func Send

func Send(to string, subject string, body string) error

func Send2 added in v0.0.9

func Send2(to string, subject string, body string) error

func SendContentType added in v0.0.7

func SendContentType(to, subject, msg_to_send string) *gmail.UsersMessagesSendCall

func StartWatch

func StartWatch(userid, topic string) (time.Time, error)

func StopWatch

func StopWatch(userId string) error

func Thread

func Thread(labelID string, maxCount int) map[string][]byte

func Watch

func Watch(userId string, watchReq *gmail.WatchRequest) *gmail.UsersWatchCall

Types

type Message

type Message struct {
	From       string // from name
	ReplyTo    string // from address
	To         string
	Subject    string
	Body       string
	Attachment io.Reader
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL