From d290ec1c2224a293b120908e0501982af033056d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 9 Jul 2021 19:57:56 +0100 Subject: [PATCH] Implement Reset on SessionLocal --- internal/smtpserver/session_local.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/smtpserver/session_local.go b/internal/smtpserver/session_local.go index baba557..8250fc3 100644 --- a/internal/smtpserver/session_local.go +++ b/internal/smtpserver/session_local.go @@ -107,7 +107,10 @@ func (s *SessionLocal) Data(r io.Reader) error { return nil } -func (s *SessionLocal) Reset() {} +func (s *SessionLocal) Reset() { + s.rcpt = s.rcpt[:0] + s.from = "" +} func (s *SessionLocal) Logout() error { return nil