go fmt.
This commit is contained in:
parent
fdbafdab4b
commit
b9243e732a
4 changed files with 23 additions and 27 deletions
|
@ -1,8 +1,8 @@
|
|||
package smtpd
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type MailAddress string
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package smtpd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"crypto/tls"
|
||||
"bufio"
|
||||
"log"
|
||||
"bytes"
|
||||
"crypto/tls"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type command struct {
|
||||
|
@ -145,7 +145,6 @@ func (session *session) handleRCPT(cmd command) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
func (session *session) handleSTARTTLS(cmd command) {
|
||||
|
||||
if session.tls {
|
||||
|
|
5
smtpd.go
5
smtpd.go
|
@ -7,12 +7,11 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"time"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
||||
Addr string // Address to listen on when using ListenAndServe (default: "127.0.0.1:10025")
|
||||
WelcomeMessage string // Initial server banner (default: "<hostname> ESMTP ready.")
|
||||
|
||||
|
@ -55,7 +54,6 @@ type Envelope struct {
|
|||
}
|
||||
|
||||
type session struct {
|
||||
|
||||
server *Server
|
||||
|
||||
peer Peer
|
||||
|
@ -242,7 +240,6 @@ func (session *session) error(err error) {
|
|||
session.reply(502, fmt.Sprintf("%s", err))
|
||||
}
|
||||
|
||||
|
||||
func (session *session) extensions() []string {
|
||||
|
||||
extensions := []string{
|
||||
|
|
Loading…
Add table
Reference in a new issue