From 3b12fa7aec920d072592c8801d1da4a84aac6056 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sun, 9 Aug 2015 00:27:56 +0200 Subject: spamd, coding style, add some more spaces --- config/spamd/spamd.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/spamd') diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc index dffdb461..7dc1ecdc 100644 --- a/config/spamd/spamd.inc +++ b/config/spamd/spamd.inc @@ -202,7 +202,7 @@ function spamd_generate_rules($type) { $natrules .= "table persist\n"; $natrules .= "table persist\n"; $natrules .= "table persist\n"; - if(file_exists("/var/db/whitelist.txt")) { + if (file_exists("/var/db/whitelist.txt")) { $natrules .= "table persist file \"/var/db/whitelist.txt\"\n"; } @@ -212,11 +212,11 @@ function spamd_generate_rules($type) { $spamdconfig = $config['installedpackages']['spamdsettings']['config']; } - if($spamdconfig) { + if ($spamdconfig) { $nextmta = $spamdconfig['nextmta']; $spamdbinds = explode(',', $spamdconfig['spamdbinds_array']); if (is_array($spamdbinds)) { - foreach($spamdbinds as $interface) { + foreach ($spamdbinds as $interface) { $wanif = get_real_interface($interface); if (!isset($wanif)) { continue; @@ -224,7 +224,7 @@ function spamd_generate_rules($type) { $natrules .= "rdr pass on {$wanif} proto tcp from to port smtp -> 127.0.0.1 port spamd\n"; $natrules .= "rdr pass on {$wanif} proto tcp from to port smtp -> 127.0.0.1 port spamd\n"; $natrules .= "rdr pass on {$wanif} proto tcp from ! to port smtp -> 127.0.0.1 port spamd\n"; - if($nextmta <> "") { + if ($nextmta <> "") { $natrules .= "rdr pass on {$wanif} proto tcp from to port smtp -> {$nextmta} port smtp\n"; } } -- cgit v1.2.3