From ca90343850290c256430ad64daa3d809a7016299 Mon Sep 17 00:00:00 2001 From: Stas Rudakou Date: Sat, 30 Jul 2022 22:42:49 +0200 Subject: outgoing-cred-cmd: delay execution until an email needs to be sent This can be useful in cases when: 1. outgoing-cred-cmd requires a user action or confirmation (e.g. when using pass with a Yubikey or similar smart card that requires a user to enter a pin or touch the device when decrypting the password) 2. A user starts aerc frequently, but not all the sessions end up with sending emails 3. So the user only wants to execute outgoing-cred-cmd when the password is really used, so the user doesn't have to enter pin or touch their Yubikey each time aerc starts Signed-off-by: Stas Rudakou Acked-by: Robin Jarry --- widgets/account-wizard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go index ab691395..8b78dcdb 100644 --- a/widgets/account-wizard.go +++ b/widgets/account-wizard.go @@ -522,7 +522,7 @@ func (wizard *AccountWizard) finish(tutorial bool) { Default: "INBOX", From: sec.Key("from").String(), Source: sec.Key("source").String(), - Outgoing: sec.Key("outgoing").String(), + Outgoing: config.RemoteConfig{Value: sec.Key("outgoing").String()}, } if wizard.smtpMode == SMTP_STARTTLS { account.Params = map[string]string{ -- cgit