Versions in this module Expand all Collapse all v0 v0.0.5 Aug 19, 2024 Changes in this version type Config + Logger logger v0.0.4 May 13, 2024 v0.0.3 May 13, 2024 Changes in this version + const EBCC + const ECC + const EDate + const EEHost + const EEMailbox + const EEName + const EESR + const EFrom + const EInReplyTo + const EMessageID + const EReplyTo + const ESender + const ESubject + const ETo + const TimeFormat + var AddSlashes = strings.NewReplacer(`"`, `\"`) + var RemoveSlashes = strings.NewReplacer(`\"`, `"`) + var SkipResponses = false + var Verbose = false + func GetTokenName(tokenType TType) string + func IsLiteral(b rune) bool + type Attachment struct + Content []byte + MimeType string + Name string + func (a Attachment) String() string + type Config struct + Host string + Password string + Port int + TLSConfig *tls.Config + Username string + type Dialer struct + ConnNum int + Connected bool + Folder string + Host string + Password string + Port int + TLSConfig *tls.Config + Username string + func New(cfg Config) (d *Dialer, err error) + func (d *Dialer) CheckType(token *Token, acceptableTypes []TType, tks []*Token, loc string, ...) (err error) + func (d *Dialer) Clone() (d2 *Dialer, err error) + func (d *Dialer) Close() error + func (d *Dialer) Exec(command string, buildResponse bool, processLine func(line []byte) error) (response string, err error) + func (d *Dialer) GetEmails(uids ...int) (emails map[int]*Email, err error) + func (d *Dialer) GetFolders() (folders []string, err error) + func (d *Dialer) GetOverviews(uids ...int) (emails map[int]*Email, err error) + func (d *Dialer) GetStrtokI() int + func (d *Dialer) GetTotalEmailCount() (count int, err error) + func (d *Dialer) GetTotalEmailCountExcluding(excludedFolders []string) (count int, err error) + func (d *Dialer) GetTotalEmailCountStartingFrom(startFolder string) (count int, err error) + func (d *Dialer) GetTotalEmailCountStartingFromExcluding(startFolder string, excludedFolders []string) (count int, err error) + func (d *Dialer) GetUIDs(search string) (uids []int, err error) + func (d *Dialer) Login(username string, password string) (err error) + func (d *Dialer) MoveEmail(uid int, folder string) (err error) + func (d *Dialer) ParseFetchResponse(r string) (records [][]*Token, err error) + func (d *Dialer) Reconnect() (err error) + func (d *Dialer) SelectFolder(folder string) (err error) + func (d *Dialer) Strtok(delims []byte) string + func (d *Dialer) StrtokInit(b string, delims []byte) string + type Email struct + Attachments []Attachment + BCC EmailAddresses + CC EmailAddresses + Flags []string + From EmailAddresses + HTML string + MessageID string + Received time.Time + ReplyTo EmailAddresses + Sent time.Time + Size uint64 + Subject string + Text string + To EmailAddresses + UID int + func (e Email) String() string + type EmailAddresses map[string]string + func (e EmailAddresses) String() string + type TType uint8 + const TAtom + const TContainer + const TLiteral + const TNil + const TNumber + const TQuoted + const TUnset + type Token struct + Num int + Str string + Tokens []*Token + Type TType + func (t Token) String() string