From 6febfc0f87c0aa4ed595f05441f8b3c9b59b2f50 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 31 Jul 2024 15:38:29 -0600 Subject: [PATCH] msmtp: run passwordeval if tls_key_file is provided, even without auth --- src/msmtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msmtp.c b/src/msmtp.c index 71a871a..37f2601 100644 --- a/src/msmtp.c +++ b/src/msmtp.c @@ -4048,7 +4048,7 @@ int main(int argc, char *argv[]) /* OK, we're using the settings in 'account'. Complete them and check * them. */ - if (account->auth_mech && !account->password && account->passwordeval) + if ((account->auth_mech || account->tls_key_file) && !account->password && account->passwordeval) { if (eval(account->passwordeval, &account->password, &errstr) != 0) { -- 2.44.1