From 17bd2dc4dbb3b43b1917c942100834c1341f2194 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 13 May 2019 16:04:01 -0400 Subject: Populate "From" header from config for new emails --- commands/account/compose.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/account/compose.go') diff --git a/commands/account/compose.go b/commands/account/compose.go index 15fc3549..c9be17a4 100644 --- a/commands/account/compose.go +++ b/commands/account/compose.go @@ -17,8 +17,8 @@ func Compose(aerc *widgets.Aerc, args []string) error { if len(args) != 1 { return errors.New("Usage: compose") } - // TODO: Pass along the sender info - composer := widgets.NewComposer() + acct := aerc.SelectedAccount() + composer := widgets.NewComposer(acct.AccountConfig()) // TODO: Change tab name when message subject changes aerc.NewTab(composer, runewidth.Truncate( "New email", 32, "…")) -- cgit