imap

package
v0.0.0-...-f39c8f6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COMMANDACTION_CONTINUE = CommandAction(1)
	COMMANDACTION_EXIT     = CommandAction(2)
	COMMANDACTION_NONE     = CommandAction(3)
)
View Source
const (
	IMAP_SESSION_STATE_INVALID = ImapSessionState(iota)
	IMAP_SESSION_STATE_PREAUTH
	IMAP_SESSION_STATE_AUTHOK
	IMAP_SESSION_STATE_CLOSED
)
View Source
const (
	IMAP_COMMAND_STATUS_NONE                    = ImapCommandStatus("")
	IMAP_COMMAND_STATUS_OK                      = ImapCommandStatus("OK")
	IMAP_COMMAND_STATUS_COMMAND_NOT_IMPLEMENTED = ImapCommandStatus("ERROR")
)
View Source
const (
	IMAP_COMMAND_CAPABILITY = ImapCommandVerb("CAPABILITY")
	IMAP_COMMAND_NOOP       = ImapCommandVerb("NOOP")
	IMAP_COMMAND_LOGOUT     = ImapCommandVerb("LOGOUT")
	IMAP_COMMAND_LOGIN      = ImapCommandVerb("LOGIN")
	IMAP_COMMAND_LIST       = ImapCommandVerb("LIST")
	IMAP_COMMAND_RENAME     = ImapCommandVerb("RENAME")
)
View Source
const (
	SESSION_DATA_KEY_CLIENT_ID = "client_id"
	SESSION_DATA_KEY_MAIL_TO   = "to"
	SESSION_DATA_KEY_MAIL_FROM = "from"
	SESSION_DATA_KEY_BUFFER    = "buffer"
)
View Source
const IMAP_SERVER_BUILD_STRING = "Imap Server"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAction

type CommandAction uint16

func (CommandAction) String

func (s CommandAction) String() string

type CommandResponse

type CommandResponse struct {
	// contains filtered or unexported fields
}

type Imap4Server

type Imap4Server interface {
	Start(connector common.StorageConnector) error
	// contains filtered or unexported methods
}

func NewIMap4Server

func NewIMap4Server(config *common.ApplicationConfig) Imap4Server

type Imap4Server_Impl

type Imap4Server_Impl struct {
	// contains filtered or unexported fields
}

func (*Imap4Server_Impl) Start

func (s *Imap4Server_Impl) Start(connector common.StorageConnector) error

type ImapCommandProcessor

type ImapCommandProcessor struct {
}

func NewCommandProcessor

func NewCommandProcessor() ImapCommandProcessor

func (*ImapCommandProcessor) HandleCommand

func (s *ImapCommandProcessor) HandleCommand(imapSession *ImapSession, commandLine string) CommandResponse

type ImapCommandStatus

type ImapCommandStatus string

func (ImapCommandStatus) String

func (s ImapCommandStatus) String() string

type ImapCommandVerb

type ImapCommandVerb string

func (ImapCommandVerb) String

func (s ImapCommandVerb) String() string

type ImapSession

type ImapSession struct {
	// contains filtered or unexported fields
}

func NewImapSession

func NewImapSession(serverInstance Imap4Server_Impl, conn net.Conn) *ImapSession

type ImapSessionState

type ImapSessionState uint8

func (ImapSessionState) String

func (s ImapSessionState) String() string

Jump to

Keyboard shortcuts

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