aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/base/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/routes.go')
-rw-r--r--plugins/base/routes.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 84126d3..d73dfea 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -263,6 +263,11 @@ func handleCompose(ectx echo.Context) error {
msg.From = ctx.Session.Username()
}
+ msg.To = strings.Split(ctx.QueryParam("to"), ",")
+ msg.Subject = ctx.QueryParam("subject")
+ msg.Text = ctx.QueryParam("body")
+ msg.InReplyTo = ctx.QueryParam("in-reply-to")
+
if ctx.Request().Method == http.MethodGet && ctx.Param("uid") != "" {
// This is a reply
mboxName, uid, err := parseMboxAndUid(ctx.Param("mbox"), ctx.Param("uid"))