summaryrefslogtreecommitdiff
path: root/pkgs/msmtp/0001-msmtp-run-passwordeval-if-tls_key_file-is-provided-e.patch
blob: 469b666a6dc949db323034b047fb8296931a5574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 6febfc0f87c0aa4ed595f05441f8b3c9b59b2f50 Mon Sep 17 00:00:00 2001
From: Alejandro Soto <alejandro@34project.org>
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