From 4b772fd6988dd206f0ed4cb1b2d7c4c6d4f0f455 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 11 Jan 2021 12:54:34 +0100 Subject: [PATCH] neomutt: fix smtp_pass option Configuration option `smtp_pass` is expected to evaluate a shell command, thus its value has to be in double-quotes. --- modules/programs/neomutt.nix | 2 +- tests/modules/programs/neomutt/hm-example.com-expected | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/neomutt.nix b/modules/programs/neomutt.nix index d990f02ea..f5e43698f 100644 --- a/modules/programs/neomutt.nix +++ b/modules/programs/neomutt.nix @@ -116,7 +116,7 @@ let "${smtpProto}://${escape userName}@${smtp.host}${smtpPort}"; in { smtp_url = "'${smtpBaseUrl}'"; - smtp_pass = "'`${passCmd}`'"; + smtp_pass = ''"`${passCmd}`"''; }; genMaildirAccountConfig = account: diff --git a/tests/modules/programs/neomutt/hm-example.com-expected b/tests/modules/programs/neomutt/hm-example.com-expected index fceae5dc1..9181612c8 100644 --- a/tests/modules/programs/neomutt/hm-example.com-expected +++ b/tests/modules/programs/neomutt/hm-example.com-expected @@ -10,7 +10,7 @@ set mbox_type = Maildir set sort = "threads" # MTA section -set smtp_pass='`password-command`' +set smtp_pass="`password-command`" set smtp_url='smtps://home.manager@smtp.example.com'