diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2023-01-12 12:29:17 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-26 00:20:39 +0100 |
commit | 31bc8cdad990f53ed061cf5b56a3601f1ab741d1 (patch) | |
tree | 3d76be42b965da4132a12d389b37043ffd62c2cd | |
parent | 38d63cb7f78835e4f99573f09bea6d5441a15af3 (diff) | |
download | aerc-31bc8cdad990f53ed061cf5b56a3601f1ab741d1.tar.gz aerc-31bc8cdad990f53ed061cf5b56a3601f1ab741d1.zip |
switch-account: also switch account configuration
When switching accounts, headers were updated, but not the account
configurations in the composer. Switch the account config also and add
a debug log to send with the uri being used.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | commands/compose/send.go | 1 | ||||
-rw-r--r-- | widgets/compose.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index 5af725c4..4029552e 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -140,6 +140,7 @@ func send(aerc *widgets.Aerc, composer *widgets.Composer, ctx sendCtx, // so we do everything in a goroutine and hide the composer from the user aerc.RemoveTab(composer) aerc.PushStatus("Sending...", 10*time.Second) + log.Debugf("send uri: %s", ctx.uri.String()) // enter no-quit mode mode.NoQuit() diff --git a/widgets/compose.go b/widgets/compose.go index aad566f5..3ae41989 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -151,7 +151,7 @@ func (c *Composer) setupFor(view *AccountView) error { // set new account c.acct = view c.worker = view.Worker() - + c.acctConfig = c.acct.AccountConfig() // Set from header if not already in header if fl, err := c.header.AddressList("from"); err != nil || fl == nil { c.header.SetAddressList("from", []*mail.Address{view.acct.From}) |