summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--widgets/aerc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index b4b4e28..b5e8dd1 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -500,7 +500,11 @@ func (aerc *Aerc) Mailto(addr *url.URL) error {
var subject string
h := &mail.Header{}
- h.SetAddressList("to", []*mail.Address{&mail.Address{Address: addr.Opaque}})
+ to, err := mail.ParseAddressList(addr.Opaque)
+ if err != nil {
+ return fmt.Errorf("Could not parse to: %v", err)
+ }
+ h.SetAddressList("to", to)
for key, vals := range addr.Query() {
switch strings.ToLower(key) {
case "cc":