1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

offlineimap: Strip newlines from offlineimap passwordcommand (#1853)

This allows me to use offlineimap with passwordstore. I guess nobody
uses a newline in their password?

Co-authored-by: Kerstin Humm <kerstin@erictapen.name>
This commit is contained in:
erictapen 2021-03-11 00:39:29 +01:00 committed by GitHub
parent 57a7e5e2c5
commit 040ea28e44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ let
remotePassEval =
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
in optionalAttrs (passwordCommand != null) {
remotepasseval = ''get_pass("${name}", [${arglist}])'';
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
};
in toIni {
"Account ${name}" = {