Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { CheckTLS bool Scanner *scanner.Scanner // contains filtered or unexported fields }
func NewMailServer ¶
func NewMailServer(config Config, logger zerolog.Logger, sc *scanner.Scanner, advisor *domainAdvisor.Advisor) (*Server, error)
NewMailServer returns a new instance of a mail server.
func (*Server) GetMail ¶
GetMail returns the most recent mail found within the logged-in user's mailbox.
func (*Server) Login ¶
func (s *Server) Login() (*imapClient.Client, error)
Login initializes an open session to the configured IMAP server.
Click to show internal directories.
Click to hide internal directories.