Documentation ¶
Index ¶
Constants ¶
View Source
const ( GmailIMAPHostname string = "imap.gmail.com" GmailIMAPPort int = 993 GmailSMTPHostname string = "smtp.gmail.com" DefaultEnvPrefix string = "IMAP_" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct { Hostname string Username string Password string Port int TLSRequired bool }
func NewClientConfigEnv ¶
func NewClientConfigEnv(prefix string) (ClientConfig, error)
type ClientMore ¶
type ClientMore struct { Config ClientConfig Client *client.Client }
func NewClientMoreEnv ¶
func NewClientMoreEnv(prefix string) (*ClientMore, error)
func (*ClientMore) Connect ¶
func (cm *ClientMore) Connect() error
func (*ClientMore) ConnectAndLogin ¶
func (cm *ClientMore) ConnectAndLogin() error
func (*ClientMore) Login ¶
func (cm *ClientMore) Login() error
func (*ClientMore) Logout ¶
func (cm *ClientMore) Logout() error
Click to show internal directories.
Click to hide internal directories.