Documentation ¶
Overview ¶
Package mail2most is an implementation for reading and filtering emails and pushing them to mattermost
It uses the IMAP protocol to connect to an email account and can filter via:
- Folder - Subject - From - To - Time range
and pushes the subject and body into mattermost
Index ¶
- Constants
- type Attachment
- type Mail
- type Mail2Most
- func (m Mail2Most) Debug(msg string, params map[string]interface{})
- func (m Mail2Most) Error(msg string, params map[string]interface{})
- func (m Mail2Most) GetMail(profile int) ([]Mail, error)
- func (m Mail2Most) Info(msg string, params map[string]interface{})
- func (m Mail2Most) ListFlags(profile int) ([]string, error)
- func (m Mail2Most) ListMailBoxes(profile int) ([]string, error)
- func (m Mail2Most) PostMattermost(profile int, mail Mail) error
- func (m Mail2Most) Run() error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct { ID uint32 Subject, Body string From, To []*imap.Address Date time.Time Attachments []Attachment }
Mail contains mail information
type Mail2Most ¶
Mail2Most implements the basic interface
func (Mail2Most) ListMailBoxes ¶
ListMailBoxes lists all available mailboxes
func (Mail2Most) PostMattermost ¶
PostMattermost posts a msg to mattermost
Click to show internal directories.
Click to hide internal directories.