usp_imap

package
v1.26.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL