Skip to content

Commit

Permalink
nixos/postfix: allow dollar parameters in lists (#30612)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhendric authored and qknight committed Oct 23, 2017
1 parent 48d2b58 commit c522aaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion nixos/doc/manual/release-notes/rl-1803.xml
Expand Up @@ -55,7 +55,13 @@ following incompatible changes:</para>

<itemizedlist>
<listitem>
<para></para>
<para>
Dollar signs in options under <option>services.postfix</option> are
passed verbatim to Postfix, which will interpret them as the beginning of
a parameter expression. This was already true for string-valued options
in the previous release, but not for list-valued options. If you need to
pass literal dollar signs through Postfix, double them.
</para>
</listitem>
</itemizedlist>

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/mail/postfix.nix
Expand Up @@ -28,7 +28,7 @@ let

mainCf = let
escape = replaceStrings ["$"] ["$$"];
mkList = items: "\n " + concatMapStringsSep "\n " escape items;
mkList = items: "\n " + concatStringsSep "\n " items;
mkVal = value:
if isList value then mkList value
else " " + (if value == true then "yes"
Expand Down

0 comments on commit c522aaa

Please sign in to comment.