imap

package
v0.0.0-...-545ca47 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package imap provides a go-imap backend that encrypts and decrypts PGP messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	backend.Backend

	Encrypt EncryptMode
	Decrypt DecryptMode

	Unlock pgpmail.UnlockFunction
}

func New

func New(be backend.Backend, unlock pgpmail.UnlockFunction) *Backend

func (*Backend) Login

func (be *Backend) Login(conn *imap.ConnInfo, username, password string) (backend.User, error)

type DecryptMode

type DecryptMode uint
const (
	DecryptRegular DecryptMode = iota
	DecryptWrap
	DecryptFull
)

type EncryptMode

type EncryptMode uint
const (
	EncryptRegular EncryptMode = iota
	EncryptWrap
)

Jump to

Keyboard shortcuts

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