MCPcopy Index your code

hub / github.com/emersion/go-smtp / functions

Functions251 in github.com/emersion/go-smtp

↓ 89 callersMethodwriteResponse
(code int, enhCode EnhancedCode, text ...string)
conn.go:1282
↓ 72 callersMethodClose
()
server_test.go:199
↓ 29 callersMethodString
()
server_test.go:230
↓ 28 callersFunctiontestServerAuthenticated
(t *testing.T)
server_test.go:358
↓ 18 callersMethodClose
Close closes the connection.
client.go:180
↓ 17 callersMethodClose
()
conn.go:169
↓ 17 callersFunctionNewClient
NewClient returns a new Client using an existing connection and host as a server name to be used when authenticating.
client.go:103
↓ 14 callersMethodMail
Mail issues a MAIL command to the server using the provided email address. If the server supports the 8BITMIME extension, Mail adds the BODY=8BITMIME
client.go:426
↓ 14 callersMethodRcpt
Rcpt issues a RCPT command to the server using the provided email address. A call to Rcpt must be preceded by a call to Mail and may be followed by a
client.go:492
↓ 13 callersMethodcmd
cmd is a convenience function that sends a command and returns the response textproto.Error returned by c.text.ReadResponse is converted into SMTPErro
client.go:254
↓ 12 callersMethodhello
hello runs a hello exchange if needed.
client.go:204
↓ 12 callersFunctiontestServerEhlo
(t *testing.T, fn ...serverConfigureFunc)
server_test.go:278
↓ 11 callersMethodSession
()
conn.go:157
↓ 9 callersMethodQuit
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.
client.go:888
↓ 8 callersMethodExtension
Extension reports whether an extension is support by the server. The extension name is case-insensitive. If the extension is supported, Extension also
client.go:811
↓ 8 callersMethodSetDeadline
(time.Time)
client_test.go:68
↓ 7 callersMethodClose
()
client_test.go:65
↓ 7 callersMethodHello
Hello sends a HELO or EHLO to the server as the given host name. Calling this method is only necessary if the client needs control over the host name
client.go:233
↓ 7 callersMethodreset
()
conn.go:1333
↓ 6 callersMethodWrite
Write implements io.Writer.
client.go:572
↓ 5 callersMethodData
Set currently processed message contents and send it. r must be consumed before Data returns.
backend.go:65
↓ 5 callersMethodError
()
data.go:32
↓ 5 callersMethodPrintf
(format string, v ...interface{})
server.go:19
↓ 5 callersMethodPrintln
(v ...interface{})
server.go:20
↓ 5 callersMethodTLSConnectionState
TLSConnectionState returns the connection's TLS connection state. Zero values are returned if the connection doesn't use TLS.
conn.go:188
↓ 5 callersMethodVerify
Verify checks the validity of an email address on the server. If Verify returns nil, the address is valid. A non-nil return does not necessarily indic
client.go:352
↓ 5 callersFunctiondataErrorToStatus
(err error)
conn.go:1257
↓ 5 callersMethodreadByte
()
parse.go:114
↓ 5 callersMethodwriteError
(code int, enhCode EnhancedCode, err error)
conn.go:1314
↓ 4 callersMethodAuth
Auth authenticates a client using the provided authentication mechanism. Only servers that advertise the AUTH extension support this function. If ser
client.go:367
↓ 4 callersMethodData
Data issues a DATA command to the server and returns a writer that can be used to write the mail headers and body. The caller should close the writer
client.go:700
↓ 4 callersMethodRemoteAddr
()
client_test.go:67
↓ 4 callersMethodServe
Serve accepts incoming connections on the Listener l.
server.go:107
↓ 4 callersMethodacceptByte
(ch byte)
parse.go:122
↓ 4 callersMethodfillRemaining
fillRemaining sets status for all recipients SetStatus was not called for before.
conn.go:1177
↓ 4 callersFunctionisPrintableASCII
(val string)
conn.go:662
↓ 4 callersMethodpeekByte
()
parse.go:107
↓ 4 callersMethodreadResponse
(expectCode int)
client.go:244
↓ 4 callersFunctiontestServerGreetedLMTP
(t *testing.T, fn ...serverConfigureFunc)
lmtp_server_test.go:14
↓ 4 callersFunctionvalidateLine
validateLine checks to see if a line has CR or LF.
client.go:956
↓ 3 callersMethodAccept
()
server_test.go:195
↓ 3 callersMethodAddr
()
server_test.go:210
↓ 3 callersMethodClose
Close immediately closes all active listeners and connections. Close returns any error returned from closing the server's underlying listener(s).
server.go:262
↓ 3 callersMethodSendMail
SendMail will use an existing connection to send an email from address from, to addresses to, with message r. This function does not start TLS, nor d
client.go:722
↓ 3 callersMethodSetStatus
(rcptTo string, err error)
backend.go:92
↓ 3 callersFunctiondecodeXtext
(val string)
conn.go:457
↓ 3 callersMethodehlo
ehlo sends the EHLO (extended hello) greeting to the server. It should be the preferred greeting for servers that support it.
client.go:278
↓ 3 callersFunctionencodeXtext
(raw string)
conn.go:599
↓ 3 callersMethodparseReversePath
()
parse.go:142
↓ 3 callersMethodprotocolError
protocolError writes errors responses and closes the connection once too many have occurred.
conn.go:211
↓ 3 callersFunctionsendDeliveryCmdsLMTP
(t *testing.T, scanner *bufio.Scanner, c io.Writer)
lmtp_server_test.go:25
↓ 3 callersFunctiontestServerGreeted
(t *testing.T, fn ...serverConfigureFunc)
server_test.go:267
↓ 2 callersMethodAuth
(mech string)
backend.go:101
↓ 2 callersMethodCloseWithLMTPResponse
CloseWithLMTPResponse is equivalent to Close, but also returns per-recipient server responses. It can only be called when the LMTP protocol is used.
client.go:616
↓ 2 callersMethodCloseWithResponse
CloseWithResponse is equivalent to Close, but also returns the server response. It cannot be called when the LMTP protocol is used. If server returns
client.go:591
↓ 2 callersFunctionDialStartTLS
DialStartTLS returns a new Client connected to an SMTP server via STARTTLS at addr. The addr must include a port, as in "mail.example.com:smtp". A ni
client.go:89
↓ 2 callersMethodError
Error implements error.
client.go:680
↓ 2 callersMethodLMTPData
LMTPData is the LMTP-specific version of Data method. It can be optionally implemented by the backend to provide per-recipient status information when
backend.go:86
↓ 2 callersMethodListenAndServe
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
server.go:222
↓ 2 callersMethodLogout
Free all resources associated with session.
backend.go:56
↓ 2 callersMethodMail
Set return path for currently processed message.
backend.go:59
↓ 2 callersMethodNext
(fromServer []byte)
client_test.go:57
↓ 2 callersMethodRcpt
Add recipient for currently processed message.
backend.go:61
↓ 2 callersMethodSend
(err error)
server_test.go:186
↓ 2 callersMethodServer
()
conn.go:153
↓ 2 callersMethodSetReadDeadline
(time.Time)
client_test.go:69
↓ 2 callersMethodSetWriteDeadline
(time.Time)
client_test.go:70
↓ 2 callersMethodShutdown
Shutdown gracefully shuts down the server without interrupting any active connections. Shutdown works by first closing all open listeners and then wai
server.go:293
↓ 2 callersMethodauthAllowed
()
conn.go:204
↓ 2 callersFunctioncheckNotifySet
(values []DSNNotify)
conn.go:794
↓ 2 callersMethodclose
()
client.go:653
↓ 2 callersMethodcreateStatusCollector
()
conn.go:1144
↓ 2 callersFunctioncutPrefixFold
cutPrefixFold is a version of strings.CutPrefix which is case-insensitive.
parse.go:11
↓ 2 callersFunctiondecodeSASLResponse
(s string)
conn.go:898
↓ 2 callersMethodexpectByte
(ch byte)
parse.go:131
↓ 2 callersMethodhelo
helo sends the HELO greeting to the server. It should be used only when the server does not support ehlo.
client.go:270
↓ 2 callersMethodinit
()
conn.go:59
↓ 2 callersFunctioninitStartTLS
(c *Client, tlsConfig *tls.Config)
client.go:130
↓ 2 callersMethodnetwork
()
server.go:208
↓ 2 callersFunctionnewDataReader
(c *Conn)
data.go:58
↓ 2 callersFunctionnewLocalListener
(t *testing.T)
client_test.go:675
↓ 2 callersFunctionnewMockError
(msg string, temporary bool)
server_test.go:222
↓ 2 callersFunctionparseArgs
Takes the arguments proceeding a command and files them into a map[string]string after uppercasing each key. Sample arg string: " BODY=8BITMIME SIZ
parse.go:52
↓ 2 callersMethodparseMailbox
()
parse.go:171
↓ 2 callersMethodparsePath
()
parse.go:150
↓ 2 callersMethodreadLine
Reads a line of input
conn.go:1323
↓ 2 callersFunctionsendLHLO
(t *testing.T, scanner *bufio.Scanner, c io.Writer)
lmtp_server_test.go:40
↓ 2 callersFunctionsendMail
nil, except for tests
client.go:746
↓ 2 callersFunctionserverHandle
smtp server, finely tailored to deal with our own client only!
client_test.go:695
↓ 2 callersMethodsetConn
setConn sets the underlying network connection for the client.
client.go:152
↓ 2 callersMethodsetSession
(session Session)
conn.go:163
↓ 2 callersMethodstartTLS
startTLS sends the STARTTLS command and encrypts all further communication. Only servers that advertise the STARTTLS extension support this function.
client.go:311
↓ 2 callersFunctiontestServer
(t *testing.T, fn ...serverConfigureFunc)
server_test.go:242
↓ 2 callersFunctiontoSMTPErr
toSMTPErr converts textproto.Error into SMTPError, parsing enhanced status code if it is present.
client.go:918
↓ 1 callersMethodAuthMechanisms
()
backend.go:100
↓ 1 callersMethodData
(r io.Reader)
server_test.go:127
↓ 1 callersFunctionDial
Dial returns a new Client connected to an SMTP server at addr. The addr must include a port, as in "mail.example.com:smtp". This function returns a p
client.go:57
↓ 1 callersFunctionDialTLS
DialTLS returns a new Client connected to an SMTP server via TLS at addr. The addr must include a port, as in "mail.example.com:smtps". A nil tlsConf
client.go:71
↓ 1 callersMethodMaxMessageSize
MaxMessageSize returns the maximum message size accepted by the server. 0 means unlimited. If the server doesn't convey this information, ok = false
client.go:841
↓ 1 callersMethodNewSession
(c *Conn)
backend.go:34
next →1–100 of 251, ranked by callers