aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorStas Rudakou <stas@garage22.net>2022-07-30 22:42:49 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-31 19:53:13 +0200
commitca90343850290c256430ad64daa3d809a7016299 (patch)
tree5e5f8aed3c7b77f18764103875c67cff061c384f /widgets
parente73e5065b0f81e566f8383d30ad25950b127e96b (diff)
downloadaerc-ca90343850290c256430ad64daa3d809a7016299.tar.gz
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 <stas@garage22.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/account-wizard.go2
1 files changed, 1 insertions, 1 deletions
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{