imapsql

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: GPL-3.0 Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *container.C, modName, instName string) (module.Module, error)

Types

type ExtBlob added in v0.5.0

type ExtBlob struct {
	io.ReadCloser
}

func (ExtBlob) Sync added in v0.5.0

func (e ExtBlob) Sync() error

func (ExtBlob) Write added in v0.5.0

func (e ExtBlob) Write(p []byte) (n int, err error)

type ExtBlobStore added in v0.5.0

type ExtBlobStore struct {
	Base module.BlobStore
}

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
	// contains filtered or unexported fields
}

func (*Storage) Configure added in v0.9.0

func (store *Storage) Configure(inlineArgs []string, cfg *config.Map) error

func (*Storage) CreateIMAPAcct added in v0.3.0

func (store *Storage) CreateIMAPAcct(accountName string) error

func (*Storage) CreateMessageLimit

func (store *Storage) CreateMessageLimit() *uint32

func (*Storage) DeleteIMAPAcct added in v0.3.0

func (store *Storage) DeleteIMAPAcct(accountName string) error

func (*Storage) EnableUpdatePipe

func (store *Storage) EnableUpdatePipe(mode updatepipe.BackendMode) error

func (*Storage) GetIMAPAcct added in v0.3.0

func (store *Storage) GetIMAPAcct(accountName string) (backend.User, error)

func (*Storage) GetOrCreateIMAPAcct added in v0.3.0

func (store *Storage) GetOrCreateIMAPAcct(username string) (backend.User, error)

func (*Storage) I18NLevel

func (store *Storage) I18NLevel() int

func (*Storage) IMAPExtensions

func (store *Storage) IMAPExtensions() []string

func (*Storage) InstanceName

func (store *Storage) InstanceName() string

func (*Storage) ListIMAPAccts added in v0.3.0

func (store *Storage) ListIMAPAccts() ([]string, error)

func (*Storage) Login added in v0.4.0

func (store *Storage) Login(_ *imap.ConnInfo, usenrame, password string) (backend.User, error)

func (*Storage) Lookup added in v0.3.0

func (store *Storage) Lookup(ctx context.Context, key string) (string, bool, error)

func (*Storage) Name

func (store *Storage) Name() string

func (*Storage) Start

func (store *Storage) Start() error

func (*Storage) StartDelivery added in v0.9.0

func (store *Storage) StartDelivery(ctx context.Context, msgMeta *module.MsgMetadata, mailFrom string) (module.Delivery, error)

func (*Storage) Stop added in v0.9.0

func (store *Storage) Stop() error

func (*Storage) SupportedThreadAlgorithms added in v0.4.0

func (store *Storage) SupportedThreadAlgorithms() []sortthread.ThreadAlgorithm

type WriteExtBlob added in v0.5.0

type WriteExtBlob struct {
	module.Blob
}

func (WriteExtBlob) Read added in v0.5.0

func (w WriteExtBlob) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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