aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-12 11:21:06 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-12 11:21:06 -0500
commita5fe1e358ecb535f9f88f348831d82757dd62ae9 (patch)
tree038d26f24681b52fe9b6ba57174f9941c6717443 /plugins
parent5a8d1572b1297c3a72fd33ee42d15e6368a52936 (diff)
downloadalps-a5fe1e358ecb535f9f88f348831d82757dd62ae9.tar.gz
alps-a5fe1e358ecb535f9f88f348831d82757dd62ae9.zip
Carry Message-ID forward through compose process
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/public/compose.html1
-rw-r--r--plugins/base/routes.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/public/compose.html b/plugins/base/public/compose.html
index df1e360..6bc2c7a 100644
--- a/plugins/base/public/compose.html
+++ b/plugins/base/public/compose.html
@@ -9,6 +9,7 @@
<h2>Compose new message</h2>
<form method="post" action="" enctype="multipart/form-data">
+ <input type="hidden" name="message_id" value="{{.Message.MessageID}}">
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
<label for="from">From:</label>
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 2ef10ff..fa8f35b 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -526,7 +526,6 @@ func submitCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
if task.Result() == nil {
// Remove from outbox
err := ctx.Session.DoIMAP(func(c *imapclient.Client) error {
- ctx.Logger().Printf("DoIMAP")
if err := ensureMailboxSelected(c, "Outbox"); err != nil {
return err
}
@@ -617,6 +616,7 @@ func handleCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
msg.Subject = ctx.FormValue("subject")
msg.Text = ctx.FormValue("text")
msg.InReplyTo = ctx.FormValue("in_reply_to")
+ msg.MessageID = ctx.FormValue("message_id")
form, err := ctx.MultipartForm()
if err != nil {