mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 20:53:14 +00: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
|
||||
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}`'";
|
||||
|
|
Loading…
Reference in a new issue