Clear RCPTs on MAIL

This commit is contained in:
Neil Alexander
2021-07-09 19:54:15 +01:00
parent ea11f4cf6c
commit 2c484d44a7

View File

@@ -21,6 +21,8 @@ type SessionLocal struct {
}
func (s *SessionLocal) Mail(from string, opts smtp.MailOptions) error {
s.rcpt = s.rcpt[:0]
pk, err := utils.ParseAddress(from)
if err != nil {
return fmt.Errorf("parseAddress: %w", err)