alps/compose.html: fix message ID

This commit is contained in:
Drew DeVault 2020-11-13 10:32:02 -05:00
parent 5268eba101
commit 0d1cca191b
2 changed files with 5 additions and 2 deletions

View file

@ -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 {

View file

@ -9,8 +9,8 @@
<main class="create-update">
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="message_id" value="{{.Message.InReplyTo}}">
<input type="hidden" name="in_reply_to" value="{{.Message.MessageID}}">
<input type="hidden" name="message_id" value="{{.Message.MessageID}}">
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
<div class="headers no-js">
<label>From</label>