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
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}`'";