summary refs log tree commit diff
path: root/nixos/modules/services/mail/postfix.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-27 12:01:20 +0000
committerGitHub <noreply@github.com>2021-07-27 12:01:20 +0000
commit2692c2e4277b0b1b3b01299462f238efccba91e2 (patch)
tree9c186fa1b83585cd1f7f82351b8c8d061bfd6395 /nixos/modules/services/mail/postfix.nix
parent4fc4793298c10b1d648a0f269bc44394d5171c9e (diff)
parent2431a34ffe50eeb382ea4d7f8d3984e9029d6e04 (diff)
downloadnixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.gz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.bz2
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.lz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.xz
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.tar.zst
nixpkgs-2692c2e4277b0b1b3b01299462f238efccba91e2.zip
Merge master into staging-next
Diffstat (limited to 'nixos/modules/services/mail/postfix.nix')
-rw-r--r--nixos/modules/services/mail/postfix.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/postfix.nix b/nixos/modules/services/mail/postfix.nix
index 35639e1bbc8..9b0a5bba2fe 100644
--- a/nixos/modules/services/mail/postfix.nix
+++ b/nixos/modules/services/mail/postfix.nix
@@ -194,7 +194,7 @@ let
       # We need to handle the last column specially here, because it's
       # open-ended (command + args).
       lines = [ labels labelDefaults ] ++ (map (l: init l ++ [""]) masterCf);
-    in fold foldLine (genList (const 0) (length labels)) lines;
+    in foldr foldLine (genList (const 0) (length labels)) lines;
 
     # Pad a string with spaces from the right (opposite of fixedWidthString).
     pad = width: str: let
@@ -203,7 +203,7 @@ let
     in str + optionalString (padWidth > 0) padding;
 
     # It's + 2 here, because that's the amount of spacing between columns.
-    fullWidth = fold (width: acc: acc + width + 2) 0 maxWidths;
+    fullWidth = foldr (width: acc: acc + width + 2) 0 maxWidths;
 
     formatLine = line: concatStringsSep "  " (zipListsWith pad maxWidths line);