Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2022 Changes in this version + func PopMails(ctx context.Context, cfg POP3ClientConfig, f func(*MailMessage) error) error + type ListItem struct + Id int + Size int + type Mail struct + Message *mail.Message + RawMessage []byte + UID []byte + type MailMessage struct + From string + Subject string + Text string + type POP3ClientConfig struct + Host string + Password string + Port string + TLSEnabled bool + TLSSkipVerify bool + Timeout time.Duration + Username string + type POP3Conn struct + func NewPOP3Conn(cfg POP3ClientConfig) (*POP3Conn, error) + func (c *POP3Conn) Close() + func (c *POP3Conn) CloseOnErr() error + func (c *POP3Conn) Delete(id int) error + func (c *POP3Conn) GetMail(ctx context.Context, id int) (*MailMessage, error) + func (c *POP3Conn) List(ctx context.Context) ([]ListItem, error) + func (c *POP3Conn) ReadLinesToPoint(ctx context.Context) *POP3Conn + func (c *POP3Conn) ReadOK(errstr string) *POP3Conn + func (c *POP3Conn) Sendf(format string, args ...interface{}) *POP3Conn