diff options
author | Reto Brunner <reto@labrat.space> | 2020-11-28 15:45:46 +0100 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-11-28 15:45:46 +0100 |
commit | 7bc556740a519ebf486932d920ba9d9d59b25434 (patch) | |
tree | ab351d7ff60a5647e0c8d3d8670a90644350e29d /widgets/aerc.go | |
parent | 67923707ffd826ad1d02c0a5b5ebd75ffbc71364 (diff) | |
download | aerc-7bc556740a519ebf486932d920ba9d9d59b25434.tar.gz |
fix mailto parsing
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r-- | widgets/aerc.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go index b4b4e28f..b5e8dd13 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": |