Documentation ¶
Overview ¶
Package imapsql implements SQL-based storage module using go-imap-sql library (github.com/foxcpp/go-imap-sql).
Interfaces implemented: - module.StorageBackend - module.PlainAuth - module.DeliveryTarget
Index ¶
- func New(_, instName string, _, inlineArgs []string) (module.Module, error)
- type ExtBlob
- type ExtBlobStore
- type Storage
- func (store *Storage) Close() error
- func (store *Storage) CreateIMAPAcct(accountName string) error
- func (store *Storage) CreateMessageLimit() *uint32
- func (store *Storage) DeleteIMAPAcct(accountName string) error
- func (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error
- func (store *Storage) GetIMAPAcct(accountName string) (backend.User, error)
- func (store *Storage) GetOrCreateIMAPAcct(username string) (backend.User, error)
- func (store *Storage) I18NLevel() int
- func (store *Storage) IMAPExtensions() []string
- func (store *Storage) Init(cfg *config.Map) error
- func (store *Storage) InstanceName() string
- func (store *Storage) ListIMAPAccts() ([]string, error)
- func (store *Storage) Login(_ *imap.ConnInfo, usenrame, password string) (backend.User, error)
- func (store *Storage) Lookup(ctx context.Context, key string) (string, bool, error)
- func (store *Storage) Name() string
- func (store *Storage) Start(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)
- func (store *Storage) SupportedThreadAlgorithms() []sortthread.ThreadAlgorithm
- type WriteExtBlob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtBlob ¶ added in v0.5.0
type ExtBlob struct {
io.ReadCloser
}
type ExtBlobStore ¶ added in v0.5.0
func (ExtBlobStore) Create ¶ added in v0.5.0
func (e ExtBlobStore) Create(key string, objSize int64) (imapsql.ExtStoreObj, error)
func (ExtBlobStore) Delete ¶ added in v0.5.0
func (e ExtBlobStore) Delete(keys []string) error
func (ExtBlobStore) Open ¶ added in v0.5.0
func (e ExtBlobStore) Open(key string) (imapsql.ExtStoreObj, error)
type Storage ¶
type Storage struct { Back *imapsql.Backend Log log.Logger // contains filtered or unexported fields }
func (*Storage) CreateIMAPAcct ¶ added in v0.3.0
func (*Storage) CreateMessageLimit ¶
func (*Storage) DeleteIMAPAcct ¶ added in v0.3.0
func (*Storage) EnableUpdatePipe ¶
func (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error
func (*Storage) GetIMAPAcct ¶ added in v0.3.0
func (*Storage) GetOrCreateIMAPAcct ¶ added in v0.3.0
func (*Storage) IMAPExtensions ¶
func (*Storage) InstanceName ¶
func (*Storage) ListIMAPAccts ¶ added in v0.3.0
func (*Storage) SupportedThreadAlgorithms ¶ added in v0.4.0
func (store *Storage) SupportedThreadAlgorithms() []sortthread.ThreadAlgorithm
type WriteExtBlob ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.