diff options
| author | Shulhan <ms@kilabit.info> | 2019-01-29 05:38:42 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-01-29 21:35:08 +0700 |
| commit | 6b31db6f5d358c84205683d7b7021e6dbae1a262 (patch) | |
| tree | 464102fb06d349323d68dfc293635582b070dcf5 | |
| parent | 5318a341942a09335b169bd4c2e2ebe0c6cec004 (diff) | |
| download | pakakeh.go-6b31db6f5d358c84205683d7b7021e6dbae1a262.tar.xz | |
lib/smtp: suppress linter warning on sealing mail transaction
gosec linter assume that trace information that start with "FROM" is an
SQL statement.
| -rw-r--r-- | lib/smtp/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smtp/mail.go b/lib/smtp/mail.go index d4bebb65..cfe5b08b 100644 --- a/lib/smtp/mail.go +++ b/lib/smtp/mail.go @@ -91,7 +91,7 @@ func (mail *MailTx) isPostponed() bool { // // seal the mail envelope by inserting trace information into message content. -// +// nolint: gosec func (mail *MailTx) seal(clientDomain, clientAddress, localAddress string) { line := fmt.Sprintf("FROM %s (%s)\r\n\tBY %s WITH SMTP ID %s;\r\n\t%s", clientDomain, clientAddress, localAddress, mail.ID, |
