Fix Cc & Bcc handling in replies

This commit is contained in:
Drew DeVault 2019-06-21 14:33:09 -04:00
parent 63538978f3
commit ceeb30abeb
3 changed files with 14 additions and 7 deletions
commands/compose

View file

@ -36,6 +36,8 @@ func SendMessage(aerc *widgets.Aerc, args []string) error {
"No outgoing mail transport configured for this account")
}
aerc.Logger().Println("Sending mail")
uri, err := url.Parse(config.Outgoing)
if err != nil {
return errors.Wrap(err, "url.Parse(outgoing)")
@ -152,6 +154,7 @@ func SendMessage(aerc *widgets.Aerc, args []string) error {
if err = conn.Mail(from.Address); err != nil {
return 0, errors.Wrap(err, "conn.Mail")
}
aerc.Logger().Printf("rcpt to: %v", rcpts)
for _, rcpt := range rcpts {
if err = conn.Rcpt(rcpt); err != nil {
return 0, errors.Wrap(err, "conn.Rcpt")