Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArturSS7/TukTuk
/ functions
Functions
177 in github.com/ArturSS7/TukTuk
⨍
Functions
177
◇
Types & classes
47
↓ 80 callers
Method
WriteResponse
(code int, enhCode EnhancedCode, text ...string)
smtplistener/smtpserver/conn.go:961
↓ 66 callers
Method
Println
(v ...interface{})
smtplistener/smtpserver/server.go:25
↓ 28 callers
Method
log
logging to database
ftplistener/ftp.go:99
↓ 17 callers
Method
Close
()
smtplistener/smtpserver/conn.go:185
↓ 14 callers
Method
cmd
cmd is a convenience function that sends a command and returns the response textproto.Error returned by c.Text.ReadResponse is converted into SMTPErro
smtplistener/smtpserver/client.go:144
↓ 13 callers
Method
Printf
(format string, v ...interface{})
smtplistener/smtpserver/server.go:24
↓ 11 callers
Method
Session
()
smtplistener/smtpserver/conn.go:172
↓ 10 callers
Method
Error
()
smtplistener/smtpserver/data.go:31
↓ 10 callers
Method
hello
hello runs a hello exchange if needed.
smtplistener/smtpserver/client.go:113
↓ 7 callers
Method
State
()
smtplistener/smtpserver/conn.go:212
↓ 6 callers
Method
TLSConnectionState
TLSConnectionState returns the connection's TLS connection state. Zero values are returned if the connection doesn't use TLS.
smtplistener/smtpserver/conn.go:204
↓ 6 callers
Method
reset
()
smtplistener/smtpserver/conn.go:1000
↓ 6 callers
Function
validateLine
validateLine checks to see if a line has CR or LF as per RFC 5321
smtplistener/smtpserver/smtp.go:25
↓ 5 callers
Method
Data
Set currently processed message contents and send it.
smtplistener/smtpserver/backend.go:73
↓ 5 callers
Function
toSMTPErr
toSMTPErr converts textproto.Error into SMTPError, parsing enhanced status code if it is present.
smtplistener/smtpserver/client.go:589
↓ 5 callers
Function
toSMTPStatus
(err error)
smtplistener/smtpserver/conn.go:940
↓ 4 callers
Method
Close
Close closes the connection.
smtplistener/smtpserver/client.go:108
↓ 4 callers
Method
ListenAndServe
ListenAndServe listens on the network address s.Addr and then calls Serve to handle requests on incoming connections. If s.Addr is blank and LMTP is
smtplistener/smtpserver/server.go:184
↓ 4 callers
Method
Render
(w io.Writer, name string, data interface{}, c echo.Context)
backend/backend.go:37
↓ 4 callers
Method
Stop
()
ftplistener/ftp.go:55
↓ 4 callers
Method
fillRemaining
fillRemaining sets status for all recipients SetStatus was not called for before.
smtplistener/smtpserver/conn.go:860
↓ 4 callers
Method
respond
(s string)
ftplistener/ftp.go:115
↓ 3 callers
Function
NewClient
NewClient returns a new Client using an existing connection and host as a server name to be used when authenticating.
smtplistener/smtpserver/client.go:67
↓ 3 callers
Function
RandStringBytes
(n int)
backend/tcp.go:133
↓ 3 callers
Method
SetSession
Setting the user resets any message being generated
smtplistener/smtpserver/conn.go:179
↓ 3 callers
Method
init
()
smtplistener/smtpserver/conn.go:62
↓ 2 callers
Function
Handler
(w dns.ResponseWriter, req *dns.Msg)
dnslistener/dns.go:104
↓ 2 callers
Method
LMTPData
LMTPData is the LMTP-specific version of Data method. It can be optionally implemented by the backend to provide per-recipient status information when
smtplistener/smtpserver/backend.go:90
↓ 2 callers
Method
Logout
Free all resources associated with session.
smtplistener/smtpserver/backend.go:66
↓ 2 callers
Method
Mail
Set return path for currently processed message.
smtplistener/smtpserver/backend.go:69
↓ 2 callers
Method
Rcpt
Add recipient for currently processed message.
smtplistener/smtpserver/backend.go:71
↓ 2 callers
Method
ReadLine
Reads a line of input
smtplistener/smtpserver/conn.go:990
↓ 2 callers
Method
Serve
Serve accepts incoming connections on the Listener l.
smtplistener/smtpserver/server.go:110
↓ 2 callers
Method
SetStatus
(rcptTo string, err error)
smtplistener/smtpserver/backend.go:94
↓ 2 callers
Method
StartTLS
StartTLS sends the STARTTLS command and encrypts all further communication. Only servers that advertise the STARTTLS extension support this function.
smtplistener/smtpserver/client.go:205
↓ 2 callers
Function
answerQuery
(m *dns.Msg, resolveIP bool)
dnslistener/dns.go:189
↓ 2 callers
Method
createStatusCollector
()
smtplistener/smtpserver/conn.go:827
↓ 2 callers
Method
ehlo
ehlo sends the EHLO (extended hello) greeting to the server. It should be the preferred greeting for servers that support it.
smtplistener/smtpserver/client.go:172
↓ 2 callers
Function
getLoginFromSession
(c echo.Context)
backend/login.go:60
↓ 2 callers
Function
logSMTP
(db *sql.DB, RemoteAddr string)
smtplistener/smtpserver/conn.go:1019
↓ 2 callers
Function
messageFormation
(ContentFormation content, ProtocolName string, id int64)
telegrambot/telegrambot.go:80
↓ 2 callers
Function
newDataReader
(c *Conn)
smtplistener/smtpserver/data.go:53
↓ 2 callers
Function
parseDomainforlink
(str string)
telegrambot/telegrambot.go:98
↓ 2 callers
Function
parseHelloArgument
(arg string)
smtplistener/smtpserver/parse.go:61
↓ 2 callers
Method
unrecognizedCommand
(cmd string)
smtplistener/smtpserver/conn.go:91
↓ 1 callers
Method
AnonymousLogin
Called if the client attempts to send mail without logging in first. Return smtp.ErrAuthRequired if you don't want to support this.
smtplistener/smtpserver/backend.go:21
↓ 1 callers
Method
Auth
Auth authenticates a client using the provided authentication mechanism. Only servers that advertise the AUTH extension support this function. If ser
smtplistener/smtpserver/client.go:262
↓ 1 callers
Function
CheckConfig
()
emailalert/emailalert.go:92
↓ 1 callers
Method
Close
Close immediately closes all active listeners and connections. Close returns any error returned from closing the server's underlying listener(s).
smtplistener/smtpserver/server.go:229
↓ 1 callers
Function
Dial
Dial returns a new Client connected to an SMTP server at addr. The addr must include a port, as in "mail.example.com:smtp".
smtplistener/smtpserver/client.go:45
↓ 1 callers
Function
DomainParse
(rcpt string)
smtplistener/smtpserver/conn.go:1035
↓ 1 callers
Method
Extension
Extension reports whether an extension is support by the server. The extension name is case-insensitive. If the extension is supported, Extension also
smtplistener/smtpserver/client.go:520
↓ 1 callers
Function
Find
(slice []int64, val int64)
backend/dns.go:60
↓ 1 callers
Function
GetClientToken
()
emailalert/emailalert.go:108
↓ 1 callers
Method
Login
Authenticate a user. Return smtp.ErrAuthUnsupported if you don't want to support this.
smtplistener/smtpserver/backend.go:17
↓ 1 callers
Function
Lookup
(req *dns.Msg)
dnslistener/dns.go:253
↓ 1 callers
Function
NewServer
(db *sql.DB)
ftplistener/ftp.go:41
↓ 1 callers
Function
NewServer
(db *sql.DB, message string, port string)
plaintcplistener/tcp.go:34
↓ 1 callers
Function
ParseDomainDNS
(data string)
telegrambot/telegrambot.go:108
↓ 1 callers
Function
ParseDomainSMTP
(data string)
telegrambot/telegrambot.go:115
↓ 1 callers
Method
Quit
Quit sends the QUIT command and closes the connection to the server. If Quit fails the connection is not closed, Close should be used in this case.
smtplistener/smtpserver/client.go:559
↓ 1 callers
Method
Read
(b []byte)
smtplistener/smtpserver/data.go:66
↓ 1 callers
Method
Reset
Discard currently processed message.
smtplistener/smtpserver/backend.go:63
↓ 1 callers
Method
Server
()
smtplistener/smtpserver/conn.go:168
↓ 1 callers
Function
answerAcme
(m *dns.Msg)
dnslistener/dns.go:168
↓ 1 callers
Function
answerAcmeCAA
(m *dns.Msg)
dnslistener/dns.go:180
↓ 1 callers
Method
authAllowed
()
smtplistener/smtpserver/conn.go:226
↓ 1 callers
Function
decodeXtext
(val string)
smtplistener/smtpserver/conn.go:425
↓ 1 callers
Function
encodeXtext
(raw string)
smtplistener/smtpserver/conn.go:451
↓ 1 callers
Function
getClient
Retrieve a token, saves the token, then returns the generated client.
emailalert/emailalert.go:35
↓ 1 callers
Function
getTokenFromWeb
Request a token from the web, then returns the retrieved token. Rewrite for the frontend /////////
emailalert/emailalert.go:51
↓ 1 callers
Method
greet
()
smtplistener/smtpserver/conn.go:957
↓ 1 callers
Method
handle
Commands are dispatched to the appropriate handler functions.
smtplistener/smtpserver/conn.go:102
↓ 1 callers
Method
handleAuth
(arg string)
smtplistener/smtpserver/conn.go:515
↓ 1 callers
Method
handleBdat
(arg string)
smtplistener/smtpserver/conn.go:679
↓ 1 callers
Method
handleConn
(c *Conn)
smtplistener/smtpserver/server.go:134
↓ 1 callers
Method
handleData
DATA
smtplistener/smtpserver/conn.go:633
↓ 1 callers
Method
handleDataLMTP
()
smtplistener/smtpserver/conn.go:891
↓ 1 callers
Method
handleFTP
main request handler if input differs from USER we just drop the connection and don't log it
ftplistener/ftp.go:125
↓ 1 callers
Method
handleGreet
GREET state -> waiting for HELO
smtplistener/smtpserver/conn.go:232
↓ 1 callers
Method
handleMail
READY state -> waiting for MAIL
smtplistener/smtpserver/conn.go:284
↓ 1 callers
Method
handlePanic
(err interface{}, status *statusCollector)
smtplistener/smtpserver/conn.go:818
↓ 1 callers
Method
handleRcpt
MAIL state -> waiting for RCPTs followed by DATA
smtplistener/smtpserver/conn.go:477
↓ 1 callers
Method
handleStartTLS
()
smtplistener/smtpserver/conn.go:597
↓ 1 callers
Method
handleTCP
(c *Conn)
plaintcplistener/tcp.go:76
↓ 1 callers
Method
helo
helo sends the HELO greeting to the server. It should be used only when the server does not support ehlo.
smtplistener/smtpserver/client.go:164
↓ 1 callers
Method
log
logging to database
plaintcplistener/tcp.go:112
↓ 1 callers
Function
logDNS
(query string, sourceIp string)
dnslistener/dns.go:88
↓ 1 callers
Function
logLDAP
(dn, remouteAddr string)
ldaplistener/ldap.go:56
↓ 1 callers
Function
loginSession
(c echo.Context, login string)
backend/login.go:41
↓ 1 callers
Function
newConn
(c net.Conn, s *Server)
smtplistener/smtpserver/conn.go:52
↓ 1 callers
Function
newConn
return new connection with parameters
ftplistener/ftp.go:90
↓ 1 callers
Function
newConn
return new connection with parameters
plaintcplistener/tcp.go:101
↓ 1 callers
Function
parseArgs
Takes the arguments proceeding a command and files them into a map[string]string after uppercasing each key. Sample arg string: " BODY=8BITMIME SIZ
smtplistener/smtpserver/parse.go:42
↓ 1 callers
Function
parseCmd
(line string)
smtplistener/smtpserver/parse.go:8
↓ 1 callers
Function
parseConfig
()
config/config.go:41
↓ 1 callers
Function
parseDomainforlink
(str string)
discordbot/discordbot.go:34
↓ 1 callers
Function
parseEnhancedCode
(s string)
smtplistener/smtpserver/client.go:570
↓ 1 callers
Function
parsePort
(str string)
telegrambot/telegrambot.go:103
↓ 1 callers
Function
readConfig
()
config/config.go:21
next →
1–100 of 177, ranked by callers