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:
parent
7f7348b470
commit
8736190743
1 changed files with 3 additions and 1 deletions
|
@ -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}`'";
|
||||||
|
|
Loading…
Reference in a new issue