git.iko.soy/typeable/nixpkgs
on master help sign in
nixos(spamassassin): fix trailing whitespace
commit99e24590cbfbb1e82681c9a8dbb7d8d0acd6a1c6 authorPeter Simons <simons@cryp.to> dateWed 27 Sep 2017, 14:37 (9 years ago) parentbfab392
1 file changed+7−7
nixos/modules/services/mail/spamassassin.nix+7−7
nixos/modules/services/mail/spamassassin.nix+7−7
@@ -42,7 +42,7 @@ in
4242
4343 Then you can Use this sieve filter:
4444 require ["fileinto", "reject", "envelope"];
45−
45+
4646 if header :contains "X-Spam-Flag" "YES" {
4747 fileinto "spam";
4848 }
@@ -67,11 +67,11 @@ in
6767 initPreConf = mkOption {
6868 type = types.str;
6969 description = "The SpamAssassin init.pre config.";
70− default =
71− ''
70+ default =
71+ ''
7272 #
7373 # to update this list, run this command in the rules directory:
74− # grep 'loadplugin.*Mail::SpamAssassin::Plugin::.*' -o -h * | sort | uniq
74+ # grep 'loadplugin.*Mail::SpamAssassin::Plugin::.*' -o -h * | sort | uniq
7575 #
7676
7777 #loadplugin Mail::SpamAssassin::Plugin::AccessDB
@@ -142,7 +142,7 @@ in
142142
143143 systemd.services.sa-update = {
144144 script = ''
145− set +e
145+ set +e
146146 ${pkgs.su}/bin/su -s "${pkgs.bash}/bin/bash" -c "${pkgs.spamassassin}/bin/sa-update --gpghomedir=/var/lib/spamassassin/sa-update-keys/ --siteconfigpath=${spamdEnv}/" spamd
147147
148148 v=$?
@@ -157,7 +157,7 @@ in
157157 '';
158158 };
159159
160− systemd.timers.sa-update = {
160+ systemd.timers.sa-update = {
161161 description = "sa-update-service";
162162 partOf = [ "sa-update.service" ];
163163 wantedBy = [ "timers.target" ];
@@ -184,7 +184,7 @@ in
184184 echo "Recreating '/var/lib/spamasassin' with creating '3.004001' (or similar) and 'sa-update-keys'"
185185 mkdir -p /var/lib/spamassassin
186186 chown spamd:spamd /var/lib/spamassassin -R
187− set +e
187+ set +e
188188 ${pkgs.su}/bin/su -s "${pkgs.bash}/bin/bash" -c "${pkgs.spamassassin}/bin/sa-update --gpghomedir=/var/lib/spamassassin/sa-update-keys/ --siteconfigpath=${spamdEnv}/" spamd
189189 v=$?
190190 set -e