aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2015-08-09 00:27:56 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2015-08-09 00:27:56 +0200
commit3b12fa7aec920d072592c8801d1da4a84aac6056 (patch)
tree84810d4112f799bdfb05fdd72aa22425335954f9
parent1cebd0dec21d51ee214770e0f581c02a1bfb615b (diff)
downloadpfsense-packages-3b12fa7aec920d072592c8801d1da4a84aac6056.tar.gz
pfsense-packages-3b12fa7aec920d072592c8801d1da4a84aac6056.tar.bz2
pfsense-packages-3b12fa7aec920d072592c8801d1da4a84aac6056.zip
spamd, coding style, add some more spaces
-rw-r--r--config/spamd/spamd.inc8
1 files changed, 4 insertions, 4 deletions
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 <whitelist> persist\n";
$natrules .= "table <blacklist> persist\n";
$natrules .= "table <spamd> persist\n";
- if(file_exists("/var/db/whitelist.txt")) {
+ if (file_exists("/var/db/whitelist.txt")) {
$natrules .= "table <spamd-white> 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 <blacklist> to port smtp -> 127.0.0.1 port spamd\n";
$natrules .= "rdr pass on {$wanif} proto tcp from <spamd> to port smtp -> 127.0.0.1 port spamd\n";
$natrules .= "rdr pass on {$wanif} proto tcp from !<spamd-white> to port smtp -> 127.0.0.1 port spamd\n";
- if($nextmta <> "") {
+ if ($nextmta <> "") {
$natrules .= "rdr pass on {$wanif} proto tcp from <spamd-white> to port smtp -> {$nextmta} port smtp\n";
}
}