MCPcopy Create free account

hub / github.com/alienscience/imapsrv / functions

Functions120 in github.com/alienscience/imapsrv

↓ 12 callersMethodcurrent
current gets the current byte
lexer.go:266
↓ 11 callersMethodnewLine
newLine moves onto a new line
lexer.go:271
↓ 9 callersMethodconsume
-------- Low level lexer functions ------------------------------------------- consume a single byte and return the new character Does not go through
lexer.go:237
↓ 9 callersFunctioncreateLexer
createLexer creates a partially initialised IMAP lexer lexer.newLine() must be the first call to this lexer
lexer.go:78
↓ 9 callersMethodextra
extra adds an untagged line to a response
response.go:62
↓ 8 callersFunctionok
ok creatse a OK response
response.go:35
↓ 7 callersMethodError
Error returns the string representation of the parseError
parser.go:18
↓ 7 callersMethodexpectString
----- Helper functions ------------------------------------------------------- expectString gets a string token using the given lexer function If the
parser.go:126
↓ 5 callersMethodastring
-------- IMAP tokens --------------------------------------------------------- astring treats the input as a string
lexer.go:85
↓ 4 callersMethodStart
Start an IMAP server
imap.go:140
↓ 4 callersFunctioncreateResponse
createResponse creates a response
response.go:25
↓ 4 callersMethodlog
log writes the info messages to the logger with session information
session.go:62
↓ 4 callersFunctionno
no creates a NO response
response.go:45
↓ 4 callersMethodskipSpace
skipSpace skips any spaces
lexer.go:286
↓ 3 callersMethodGetMailbox
GetMailbox gets IMAP mailbox information Returns nil if the mailbox does not exist
mailstore.go:46
↓ 3 callersFunctionbad
bad creates a BAD response
response.go:40
↓ 3 callersFunctioninternalError
------ Helper functions ------------------------------------------------------ internalError logs an error and return an response
command.go:239
↓ 3 callersMethodlogError
logError sends a log message to the default Logger
imap.go:271
↓ 3 callersFunctionpathToSlice
pathToSlice converts a path to a slice of strings
command.go:253
↓ 3 callersMethodstartToken
startToken marks the start a new token
lexer.go:295
↓ 3 callersMethodwrite
write will write a response to the given writer
response.go:80
↓ 2 callersMethodGetMailboxes
GetMailboxes gets a list of mailboxes at the given path
mailstore.go:48
↓ 2 callersFunctioncreateSession
Create a new IMAP session
session.go:50
↓ 2 callersMethodgeneralString
-------- IMAP token helper functions ----------------------------------------- generalString handles a string that can be bare, a literal or quoted
lexer.go:111
↓ 2 callersMethodlist
list creates a LIST command
parser.go:104
↓ 2 callersMethodliteral
literal parses a length tagged literal TODO: send a continuation request after the first line is read
lexer.go:160
↓ 2 callersFunctionmustAuthenticate
mustAuthenticate indicates a command is invalid because the user has not authenticated
command.go:246
↓ 2 callersMethodnonquoted
nonquoted reads a non-quoted string
lexer.go:212
↓ 2 callersMethodqstring
qstring reads a quoted string
lexer.go:127
↓ 2 callersMethodrunListener
runListener runs the given listener on a separate goroutine
imap.go:175
↓ 2 callersFunctionsetupTest
()
command_test.go:6
↓ 2 callersMethodshouldClose
shouldClose marks that a response should close the connection
response.go:68
↓ 1 callersMethodAuthenticate
Authenticate attempts to authenticate the given credentials
auth/auth.go:15
↓ 1 callersMethodCreateUser
CreateUser creates a user with the given username
auth/boltstore/bolt.go:71
↓ 1 callersMethodFirstUnseen
FirstUnseen gets the sequence number of the first unseen message in an IMAP mailbox
mailstore.go:50
↓ 1 callersFunctionNewServer
NewServer creates a new server with the given options
imap.go:123
↓ 1 callersMethodNextUid
NextUid gets the next available uid in an IMAP mailbox
mailstore.go:56
↓ 1 callersMethodRecentMessages
RecentMessages gets the total number of unread messages in an IMAP mailbox
mailstore.go:54
↓ 1 callersMethodTotalMessages
TotalMessages gets the total number of messages in an IMAP mailbox
mailstore.go:52
↓ 1 callersMethodaddMailboxInfo
addMailboxInfo adds mailbox information to the given response
session.go:119
↓ 1 callersMethodcapability
capability creates a CAPABILITY command
parser.go:69
↓ 1 callersMethodclose
close closes an IMAP client
imap.go:266
↓ 1 callersMethodconsumeAll
consumeAll a single byte and return the new character Goes through newlines
lexer.go:252
↓ 1 callersFunctioncopySlice
copySlice copies a slice
session.go:149
↓ 1 callersFunctioncreateParser
createParser creates a new IMAP parser, reading from the Reader
parser.go:23
↓ 1 callersFunctiondefaultConfig
defaultConfig returns the default server configuration
imap.go:57
↓ 1 callersMethoddepthFirstMailboxes
depthFirstMailboxes gets a recursive mailbox listing At the moment this doesn't support wildcards such as 'leader%' (are they used in real life?)
session.go:157
↓ 1 callersFunctionempty
empty creates an empty response
response.go:50
↓ 1 callersMethodexecute
Execute the command and return an IMAP response
command.go:14
↓ 1 callersMethodexecute
execute a capability
command.go:42
↓ 1 callersMethodexecute
execute a LOGOUT command
command.go:120
↓ 1 callersFunctionfatalResponse
fatalResponse writes an untagged fatal response (BYE)
response.go:55
↓ 1 callersMethodhandle
handle requests from an IMAP client
imap.go:208
↓ 1 callersFunctionjoinMailboxFlags
joinMailboxFlags returns a string of mailbox flags for the given mailbox
command.go:285
↓ 1 callersMethodlogin
login creates a LOGIN command
parser.go:74
↓ 1 callersMethodlogout
logout creates a LOGOUT command
parser.go:90
↓ 1 callersMethodnext
----- Commands --------------------------------------------------------------- next attempts to read the next command
parser.go:31
↓ 1 callersMethodnoop
noop creates a NOOP command
parser.go:64
↓ 1 callersMethodreplaceBuffers
replaceBuffers sets two possible buffers that need replacement
response.go:74
↓ 1 callersMethodselectCmd
selectCmd creates a select command
parser.go:95
↓ 1 callersMethodselectMailbox
selectMailbox selects a mailbox - returns true if the mailbox exists
session.go:70
↓ 1 callersMethodstarttls
starttls creates a starttls command
parser.go:85
↓ 1 callersMethodunknown
unknown creates a placeholder for an unknown command
parser.go:118
FunctionAuthStoreOption
AuthStoreOption adds an authenticaton backend
imap.go:74
MethodAuthenticate
Authenticate attempts to authenticate the given credentials
auth/boltstore/bolt.go:47
MethodAuthenticate
Authenticate attempts to authenticate the given credentials
auth/mysqlstore/mysql.go:13
FunctionCheckPassword
CheckPassword checks if the hash was the result of hashing this specific plainPassword
auth/auth.go:33
MethodCreateUser
CreateUser creates a user with the given username
auth/auth.go:18
MethodCreateUser
CreateUser creates a user with the given username
auth/mysqlstore/mysql.go:18
MethodDeleteUser
DeleteUser removes the username from the database entirely
auth/auth.go:29
MethodDeleteUser
DeleteUser removes the username from the database entirely
auth/boltstore/bolt.go:109
MethodDeleteUser
DeleteUser removes the username from the database entirely
auth/mysqlstore/mysql.go:35
MethodFirstUnseen
FirstUnseen gets the sequence number of the first unseen message in an IMAP mailbox
mailstore.go:104
MethodFirstUnseen
FirstUnseen gets a dummy number of first unseen messages in an IMAP mailbox
command_test.go:58
MethodGetMailbox
GetMailbox gets mailbox information
mailstore.go:64
MethodGetMailbox
GetMailbox gets dummy Mailbox information
command_test.go:21
MethodGetMailboxes
GetMailboxes gets a list of mailboxes at the given path
mailstore.go:73
MethodGetMailboxes
GetMailboxes lists dummy Mailboxes
command_test.go:29
FunctionHashPassword
HashPassword hashes the plainPassword using the bcrypt.DefaultCost
auth/auth.go:38
MethodListUsers
ListUsers lists all information about the users TODO: this could be very neat for the sysadmin, but probably a lot of metadata about users is desir
auth/auth.go:26
MethodListUsers
ListUsers lists all information about the users TODO: this could be very neat for the sysadmin, but probably a lot of metadata about users is desir
auth/boltstore/bolt.go:100
MethodListUsers
ListUsers lists all information about the users TODO: this could be very neat for the sysadmin, but probably a lot of metadata about users is desir
auth/mysqlstore/mysql.go:30
FunctionListenOption
ListenOption adds an interface to listen to
imap.go:82
FunctionListenSTARTTLSOoption
ListenSTARTTLSOoption enables STARTTLS with the given certificate and keyfile
imap.go:93
FunctionMaxClientsOption
MaxClientsOption sets the MaxClients config
imap.go:115
FunctionNewBoltAuthStore
NewBoltAuthStore creates a new auth store using BoltDB, at the specified file location
auth/boltstore/bolt.go:21
MethodNextUid
DummyMailstore gets the next available uid in an IMAP mailbox
mailstore.go:119
MethodNextUid
NextUid gets a dummy next-uid in an IMAP mailbox
command_test.go:73
MethodRecentMessages
RecentMessages gets the total number of unread messages in an IMAP mailbox
mailstore.go:114
MethodRecentMessages
RecentMessages gets a dummy number of unread messages in an IMAP mailbox
command_test.go:68
MethodResetPassword
ResetPassword resets the password for the given username
auth/auth.go:21
MethodResetPassword
ResetPassword resets the password for the given username
auth/boltstore/bolt.go:89
MethodResetPassword
ResetPassword resets the password for the given username
auth/mysqlstore/mysql.go:23
FunctionStoreOption
Add a mailstore to the config StoreOption add a mailstore to the config
imap.go:66
FunctionTestAstring
TestAstring checks the lexer will return a valid <astring> per the ABNF rule, or panic on a failing test Astring = 1*ASTRING-CHAR / string ASTRING-CH
lexer_test.go:56
FunctionTestCapabilityCommand
TestCapabilityCommand tests the correctness of the CAPABILITY command
command_test.go:78
FunctionTestConsume
(t *testing.T)
lexer_test.go:140
FunctionTestEmptyLiteral
(t *testing.T)
lexer_test.go:22
FunctionTestLexesAstring
(t *testing.T)
lexer_test.go:153
FunctionTestLexesLiteral
(t *testing.T)
lexer_test.go:187
next →1–100 of 120, ranked by callers