1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

neomutt: Add SMTP port to smtp_url

This commit is contained in:
Siva Mahadevan 2020-07-03 15:14:25 -04:00
parent 7f7348b470
commit 8736190743
No known key found for this signature in database
GPG key ID: C73DA944C732EFC2

View file

@ -111,7 +111,9 @@ let
} else } else
let let
smtpProto = if smtp.tls.enable then "smtps" else "smtp"; 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 { in {
smtp_url = "'${smtpBaseUrl}'"; smtp_url = "'${smtpBaseUrl}'";
smtp_pass = "'`${passCmd}`'"; smtp_pass = "'`${passCmd}`'";