aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-13 10:32:02 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-13 10:33:16 -0500
commit0d1cca191bd054516fa70d5715996ea085a0dde6 (patch)
tree53c6e028bda24b03aecaf0a5c50f9bb98cfe965a /plugins/base
parent5268eba101e1919e2ced0385c51c58b14b8ed668 (diff)
downloadalps-0d1cca191bd054516fa70d5715996ea085a0dde6.tar.gz
alps-0d1cca191bd054516fa70d5715996ea085a0dde6.zip
alps/compose.html: fix message ID
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/smtp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/smtp.go b/plugins/base/smtp.go
index 50a2fd0..40967dc 100644
--- a/plugins/base/smtp.go
+++ b/plugins/base/smtp.go
@@ -172,6 +172,9 @@ func (msg *OutgoingMessage) WriteTo(w io.Writer) error {
}
h.Set("Message-Id", msg.MessageID)
+ if msg.MessageID == "" {
+ panic(fmt.Errorf("Attempting to send message without message ID"))
+ }
mw, err := mail.CreateWriter(w, h)
if err != nil {