aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/base/routes.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Silvan Jegen <[email protected]> 2024-02-03 10:52:45 +0100
committerLibravatarLibravatar Simon Ser <[email protected]> 2024-02-03 21:52:58 +0100
commit0a2ff6a630eb42b7c2491d639ff2e495524577f0 (patch)
tree6e4c4c096fbd61b3de41edefb059adced643638b /plugins/base/routes.go
parentadcb58e49563a9b0ab791ca4249d8201b215a8db (diff)
downloadalps-0a2ff6a630eb42b7c2491d639ff2e495524577f0.tar.gz
alps-0a2ff6a630eb42b7c2491d639ff2e495524577f0.tar.bz2
alps-0a2ff6a630eb42b7c2491d639ff2e495524577f0.zip
Add optional Cc and Bcc fields when composing a message
This should address https://todo.sr.ht/~migadu/alps/145.
Diffstat (limited to 'plugins/base/routes.go')
-rw-r--r--plugins/base/routes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 482b368..ba3de30 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -595,6 +595,8 @@ func handleCompose(ctx *alps.Context, msg *OutgoingMessage, options *composeOpti
msg.From = ctx.FormValue("from")
msg.To = parseAddressList(ctx.FormValue("to"))
+ msg.Cc = parseAddressList(ctx.FormValue("cc"))
+ msg.Bcc = parseAddressList(ctx.FormValue("bcc"))
msg.Subject = ctx.FormValue("subject")
msg.Text = ctx.FormValue("text")
msg.InReplyTo = ctx.FormValue("in_reply_to")
@@ -735,7 +737,6 @@ func handleComposeNew(ctx *alps.Context) error {
}
// These are common mailto URL query parameters
- // TODO: cc, bcc
var hdr mail.Header
hdr.GenerateMessageID()
mid, _ := hdr.MessageID()