aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/reply.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 863c7d25..fcd83419 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -61,13 +61,16 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("No account selected")
}
conf := acct.AccountConfig()
- from, err := format.ParseAddress(conf.From)
+ from, err := mail.ParseAddress(conf.From)
if err != nil {
return err
}
- aliases, err := format.ParseAddressList(conf.Aliases)
- if err != nil {
- return err
+ var aliases []*mail.Address
+ if conf.Aliases != "" {
+ aliases, err = mail.ParseAddressList(conf.Aliases)
+ if err != nil {
+ return err
+ }
}
store := widget.Store()