From 2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 16 May 2019 10:49:50 -0400 Subject: Let caller pass in custom headers to compose --- commands/compose/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/compose') 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 { -- cgit 1.4.1-2-gfad0