diff options
author | Jesse Olson <j3s@c3f.net> | 2020-08-04 23:54:44 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-08-05 14:56:19 +0200 |
commit | 456d183ebca4725538fe69989266b677a1185adb (patch) | |
tree | 5e8875cd85479290c452b243f0f449621728f0ee | |
parent | ae9e70b5adef7fce4350e042b85d3e4601bab3e4 (diff) | |
download | alps-456d183ebca4725538fe69989266b677a1185adb.tar.gz alps-456d183ebca4725538fe69989266b677a1185adb.zip |
Set Message-Id header
-rw-r--r-- | plugins/base/smtp.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/smtp.go b/plugins/base/smtp.go index 19c9e0b..dc8211e 100644 --- a/plugins/base/smtp.go +++ b/plugins/base/smtp.go @@ -138,7 +138,8 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error { if msg.InReplyTo != "" { h.Set("In-Reply-To", msg.InReplyTo) } - // TODO: set Message-ID + + h.Set("Message-Id", mail.GenerateMessageID()) mw, err := mail.CreateWriter(w, h) if err != nil { |