aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJesse Olson <j3s@c3f.net>2020-08-04 23:54:44 +0000
committerSimon Ser <contact@emersion.fr>2020-08-05 14:56:19 +0200
commit456d183ebca4725538fe69989266b677a1185adb (patch)
tree5e8875cd85479290c452b243f0f449621728f0ee /plugins
parentae9e70b5adef7fce4350e042b85d3e4601bab3e4 (diff)
downloadalps-456d183ebca4725538fe69989266b677a1185adb.tar.gz
alps-456d183ebca4725538fe69989266b677a1185adb.zip
Set Message-Id header
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/smtp.go3
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 {