1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

mbsync: make passwordCommand escaping consistent (#3630)

* Fix mbsync passwordCommand escaping

* email: use lib.escapeShellArgs

Co-authored-by: Naïm Favier <n@monade.li>

* mbsync: update tests

---------

Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
Jarkad 2023-02-04 00:22:11 +02:00 committed by GitHub
parent d1c7730bb7
commit e2c1756e3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ let
genSection "IMAPAccount ${name}" ({
Host = imap.host;
User = userName;
PassCmd = toString passwordCommand;
PassCmd = lib.escapeShellArgs passwordCommand;
} // genTlsConfig imap.tls
// optionalAttrs (imap.port != null) { Port = toString imap.port; }
// mbsync.extraConfig.account) + "\n"

View file

@ -3,7 +3,7 @@
IMAPAccount hm-account
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.org
PassCmd "password-command 2"
PassCmd "'password-command' '2'"
SSLType IMAPS
User home.manager.jr
@ -55,7 +55,7 @@ Channel hm-account-strangeHostBoxName
IMAPAccount hm@example.com
CertificateFile /etc/ssl/certs/ca-certificates.crt
Host imap.example.com
PassCmd password-command
PassCmd 'password-command'
SSLType IMAPS
SSLVersions TLSv1.3 TLSv1.2
User home.manager