summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
commit2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a (patch)
tree2845d2e611a4abd2e6561c31b522178176c75f82 /commands
parentb0bf09b98fc038c1bc9921d568c06260b7448a15 (diff)
downloadaerc-2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a.zip
Let caller pass in custom headers to compose
Diffstat (limited to 'commands')
-rw-r--r--commands/compose/send.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index f9946b7..e1d6b1e 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -53,7 +53,7 @@ func SendMessage(aerc *widgets.Aerc, args []string) error {
return fmt.Errorf("Unknown transfer protocol %s", uri.Scheme)
}
- header, rcpts, err := composer.Header()
+ header, rcpts, err := composer.PrepareHeader()
if err != nil {
return err
}
@@ -188,7 +188,7 @@ func SendMessage(aerc *widgets.Aerc, args []string) error {
composer.Close()
}
})
- header, _, _ := composer.Header()
+ header, _, _ := composer.PrepareHeader()
composer.WriteMessage(header, w)
w.Close()
} else {