imapsql

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 27 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(_, instName string, _, inlineArgs []string) (module.Module, error)

Types

type Storage

type Storage struct {
	Back *imapsql.Backend

	Log log.Logger
	// contains filtered or unexported fields
}

func (*Storage) AuthPlain

func (store *Storage) AuthPlain(username, password string) error

func (*Storage) Close

func (store *Storage) Close() error

func (*Storage) CreateMessageLimit

func (store *Storage) CreateMessageLimit() *uint32

func (*Storage) CreateUser

func (store *Storage) CreateUser(username, password string) error

func (*Storage) CreateUserNoPass

func (store *Storage) CreateUserNoPass(username string) error

func (*Storage) DeleteUser

func (store *Storage) DeleteUser(username string) error

func (*Storage) EnableChildrenExt

func (store *Storage) EnableChildrenExt() bool

func (*Storage) EnableUpdatePipe

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

func (*Storage) GetOrCreateUser

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

func (*Storage) GetUser

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

func (*Storage) I18NLevel

func (store *Storage) I18NLevel() int

func (*Storage) IMAPExtensions

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

func (*Storage) Init

func (store *Storage) Init(cfg *config.Map) error

func (*Storage) InstanceName

func (store *Storage) InstanceName() string

func (*Storage) ListUsers

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

func (*Storage) Name

func (store *Storage) Name() string

func (*Storage) SetUserPassword

func (store *Storage) SetUserPassword(username, newPassword string) error

func (*Storage) Start

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

func (*Storage) Updates

func (store *Storage) Updates() <-chan backend.Update

Jump to

Keyboard shortcuts

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