From 5babd03b13c77117255b70d1f0828378a74e40b7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 3 Sep 2018 01:14:08 -0400 Subject: [PATCH] Remove smtp.Server.OnEHLO. --- smtp.go | 4 ---- smtp/server.go | 5 ----- 2 files changed, 9 deletions(-) diff --git a/smtp.go b/smtp.go index 81aae44..47747f3 100644 --- a/smtp.go +++ b/smtp.go @@ -95,10 +95,6 @@ func (server *smtpServer) VerifyAddress(addr mail.Address) smtp.ReplyLine { return smtp.ReplyOK } -func (server *smtpServer) OnEHLO() *smtp.ReplyLine { - return nil -} - func (server *smtpServer) OnMessageDelivered(en smtp.Envelope) *smtp.ReplyLine { maildrop := server.maildropForAddress(en.RcptTo[0]) if maildrop == "" { diff --git a/smtp/server.go b/smtp/server.go index dbd0dc3..30a65bd 100644 --- a/smtp/server.go +++ b/smtp/server.go @@ -53,7 +53,6 @@ func WriteEnvelopeForDelivery(w io.Writer, e Envelope) { type Server interface { Name() string TLSConfig() *tls.Config - OnEHLO() *ReplyLine VerifyAddress(mail.Address) ReplyLine OnMessageDelivered(Envelope) *ReplyLine } @@ -64,10 +63,6 @@ func (*EmptyServerCallbacks) TLSConfig() *tls.Config { return nil } -func (*EmptyServerCallbacks) OnEHLO() *ReplyLine { - return nil -} - func (*EmptyServerCallbacks) VerifyAddress(mail.Address) ReplyLine { return ReplyOK } -- 2.43.5