Carry Message-ID forward through compose process
This commit is contained in:
parent
5a8d1572b1
commit
a5fe1e358e
4 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
<h2>Compose new message</h2>
|
<h2>Compose new message</h2>
|
||||||
|
|
||||||
<form method="post" action="" enctype="multipart/form-data">
|
<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}}">
|
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
|
||||||
|
|
||||||
<label for="from">From:</label>
|
<label for="from">From:</label>
|
||||||
|
|
|
@ -526,7 +526,6 @@ func submitCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
|
||||||
if task.Result() == nil {
|
if task.Result() == nil {
|
||||||
// Remove from outbox
|
// Remove from outbox
|
||||||
err := ctx.Session.DoIMAP(func(c *imapclient.Client) error {
|
err := ctx.Session.DoIMAP(func(c *imapclient.Client) error {
|
||||||
ctx.Logger().Printf("DoIMAP")
|
|
||||||
if err := ensureMailboxSelected(c, "Outbox"); err != nil {
|
if err := ensureMailboxSelected(c, "Outbox"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -617,6 +616,7 @@ func handleCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
|
||||||
msg.Subject = ctx.FormValue("subject")
|
msg.Subject = ctx.FormValue("subject")
|
||||||
msg.Text = ctx.FormValue("text")
|
msg.Text = ctx.FormValue("text")
|
||||||
msg.InReplyTo = ctx.FormValue("in_reply_to")
|
msg.InReplyTo = ctx.FormValue("in_reply_to")
|
||||||
|
msg.MessageID = ctx.FormValue("message_id")
|
||||||
|
|
||||||
form, err := ctx.MultipartForm()
|
form, err := ctx.MultipartForm()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
<main class="create-update">
|
<main class="create-update">
|
||||||
|
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
|
<input type="hidden" name="message_id" value="{{.Message.InReplyTo}}">
|
||||||
|
<input type="hidden" name="in_reply_to" value="{{.Message.MessageID}}">
|
||||||
|
|
||||||
<div class="headers no-js">
|
<div class="headers no-js">
|
||||||
<label>From</label>
|
<label>From</label>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<form method="post" class="col-md-12" enctype="multipart/form-data">
|
<form method="post" class="col-md-12" enctype="multipart/form-data">
|
||||||
|
<input type="hidden" name="message_id" value="{{.Message.MessageID}}">
|
||||||
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
|
<input type="hidden" name="in_reply_to" value="{{.Message.InReplyTo}}">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
|
|
Loading…
Reference in a new issue