diff options
author | 2019-12-17 13:02:38 +0100 | |
---|---|---|
committer | 2019-12-17 13:02:38 +0100 | |
commit | e2d70ba6cab2e18063bd5b457cd861700cbbc9e7 (patch) | |
tree | 1ea907bdcb4510baf86d55c3a824ecf7abb71cf9 /plugins/base/routes.go | |
parent | 0c21c501ff603d044ff003c06abea9fd1e876280 (diff) | |
download | alps-e2d70ba6cab2e18063bd5b457cd861700cbbc9e7.tar.gz alps-e2d70ba6cab2e18063bd5b457cd861700cbbc9e7.tar.bz2 alps-e2d70ba6cab2e18063bd5b457cd861700cbbc9e7.zip |
Linkify address lists
Diffstat (limited to 'plugins/base/routes.go')
-rw-r--r-- | plugins/base/routes.go | 5 |
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")) |