1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01:00

neomutt: fix SMTP port string

Fix the SMTP port string from #1374 by properly converting the integer
port into a string.

PR #1377
This commit is contained in:
Siva Mahadevan 2020-07-03 23:22:16 -04:00 committed by Robert Helgesson
parent 7dc322c1eb
commit 5f189acce4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -111,7 +111,7 @@ let
} else
let
smtpProto = if smtp.tls.enable then "smtps" else "smtp";
smtpPort = if smtp.port != null then ":${smtp.port}" else "";
smtpPort = if smtp.port != null then ":${toString smtp.port}" else "";
smtpBaseUrl =
"${smtpProto}://${escape userName}@${smtp.host}${smtpPort}";
in {