offlineimap: Fix for OfflineIMAP 8 (#2479)
Nixpkgs switched to OfflineIMAP version 8 which means that Python 3 is now used instead of Python 2. As a result, get_pass() now returns a byte array instead of a string and the argument to get_pass() must be a byte array too. See https://github.com/OfflineIMAP/offlineimap3/issues/103.
This commit is contained in:
parent
a7c5b00d44
commit
05a3116091
|
@ -65,7 +65,7 @@ let
|
|||
remotePassEval =
|
||||
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
|
||||
in optionalAttrs (passwordCommand != null) {
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}]).strip(b"\n")'';
|
||||
};
|
||||
in toIni {
|
||||
"Account ${name}" = {
|
||||
|
|
Loading…
Reference in a new issue