Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("timeout")
)
Functions ¶
This section is empty.
Types ¶
type IMAPAdapter ¶
type IMAPAdapter struct {
// contains filtered or unexported fields
}
func NewImapAdapter ¶
func NewImapAdapter(conf ImapConfig) (*IMAPAdapter, chan struct{}, error)
func (*IMAPAdapter) Close ¶
func (a *IMAPAdapter) Close() error
type ImapConfig ¶
type ImapConfig struct { ClientOptions uspclient.ClientOptions `json:"client_options" yaml:"client_options"` Server string `json:"server" yaml:"server"` UserName string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` InboxName string `json:"inbox_name" yaml:"inbox_name"` IsInsecure bool `json:"is_insecure" yaml:"is_insecure"` FromZero bool `json:"from_zero" yaml:"from_zero"` IncludeAttachments bool `json:"include_attachments" yaml:"include_attachments"` MaxBodySize int `json:"max_body_size" yaml:"max_body_size"` AttachmentIngestKey string `json:"attachment_ingest_key" yaml:"attachment_ingest_key"` AttachmentRetentionDays int `json:"attachment_retention_days" yaml:"attachment_retention_days"` }
func (*ImapConfig) Validate ¶
func (c *ImapConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.