diff options
author | Siva Mahadevan <me@svmhdvn.name> | 2020-07-03 15:14:25 -0400 |
---|---|---|
committer | Siva Mahadevan <me@svmhdvn.name> | 2020-07-03 15:30:12 -0400 |
commit | 87361907435aa40175c5e46dd98a05ad6bd8c7eb (patch) | |
tree | b5a230b2c0a980cd86f8c067971bfce10e0ba300 | |
parent | 7f7348b47049e8d25fb5b98db1d6215f8f643f0d (diff) |
neomutt: Add SMTP port to smtp_url
-rw-r--r-- | modules/programs/neomutt.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/programs/neomutt.nix b/modules/programs/neomutt.nix index 2cc7bc6e2f9..9a0f0113d36 100644 --- a/modules/programs/neomutt.nix +++ b/modules/programs/neomutt.nix @@ -111,7 +111,9 @@ let } else let smtpProto = if smtp.tls.enable then "smtps" else "smtp"; - smtpBaseUrl = "${smtpProto}://${escape userName}@${smtp.host}"; + smtpPort = if smtp.port != null then ":${smtp.port}" else ""; + smtpBaseUrl = + "${smtpProto}://${escape userName}@${smtp.host}${smtpPort}"; in { smtp_url = "'${smtpBaseUrl}'"; smtp_pass = "'`${passCmd}`'"; |