mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Update Go doc comments to Go 1.19's format
This patch is the result of running Go 1.19's `gofmt` on the codebase, which automatically updates all Go doc comments to the new format. https://tip.golang.org/doc/go1.19#go-doc
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
// Package smtp implements the Simple Mail Transfer Protocol as defined in RFC
|
||||
// 5321. It extends net/smtp as follows:
|
||||
//
|
||||
// - Supports SMTPUTF8, via MailAndRcpt.
|
||||
// - Adds IsPermanent.
|
||||
//
|
||||
// - Supports SMTPUTF8, via MailAndRcpt.
|
||||
// - Adds IsPermanent.
|
||||
package smtp
|
||||
|
||||
import (
|
||||
@@ -87,11 +86,11 @@ func (c *Client) MailAndRcpt(from string, to string) error {
|
||||
|
||||
// prepareForSMTPUTF8 prepares the address for SMTPUTF8.
|
||||
// It returns:
|
||||
// - The address to use. It is based on addr, and possibly modified to make
|
||||
// it not need the extension, if the server does not support it.
|
||||
// - Whether the address needs the extension or not.
|
||||
// - An error if the address needs the extension, but the client does not
|
||||
// support it.
|
||||
// - The address to use. It is based on addr, and possibly modified to make
|
||||
// it not need the extension, if the server does not support it.
|
||||
// - Whether the address needs the extension or not.
|
||||
// - An error if the address needs the extension, but the client does not
|
||||
// support it.
|
||||
func (c *Client) prepareForSMTPUTF8(addr string) (string, bool, error) {
|
||||
// ASCII address pass through.
|
||||
if isASCII(addr) {
|
||||
|
||||
Reference in New Issue
Block a user