Documentation ¶
Index ¶
- func ConnectImap(conf *config.ServerConfig) (*client.Client, error)
- func MakeMessage(from *string, to *string, subject *string, body *string) string
- func RangeLastN(n uint32, total uint32) (uint32, uint32)
- func RangeSeq(from uint32, to uint32) *imap.SeqSet
- type Mail
- type MailFetchError
- type MailFetcher
- type SmtpClient
- type SmtpSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectImap ¶
func ConnectImap(conf *config.ServerConfig) (*client.Client, error)
Types ¶
type MailFetchError ¶
func (*MailFetchError) Error ¶
func (mfe *MailFetchError) Error() string
func (*MailFetchError) Unwrap ¶
func (mfe *MailFetchError) Unwrap() error
type MailFetcher ¶
type MailFetcher struct { Conf *config.Config MaxMessages uint32 Done <-chan bool Mail chan<- *Mail Errors chan<- error }
func NewMailFetcher ¶
func (*MailFetcher) Close ¶
func (f *MailFetcher) Close()
func (*MailFetcher) Run ¶
func (f *MailFetcher) Run()
func (*MailFetcher) RunOnce ¶
func (f *MailFetcher) RunOnce()
type SmtpClient ¶
type SmtpClient struct {
// contains filtered or unexported fields
}
func ConnectSmtp ¶
func ConnectSmtp(conf *config.ServerConfig) (*SmtpClient, error)
func (*SmtpClient) Quit ¶
func (client *SmtpClient) Quit() error
type SmtpSender ¶
type SmtpSender struct {
Conf *config.ServerConfig
}
SmtpSender uses a new connection for every e-mail.
Click to show internal directories.
Click to hide internal directories.