aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-xrspamc.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in
index a1f667511..e608abdbd 100755
--- a/rspamc.pl.in
+++ b/rspamc.pl.in
@@ -43,13 +43,13 @@ sub parse_config {
my $ctrl = 0, $skip = 0;
while (<CONF>) {
- if ($_ =~ /control\s*{/i) {
+ if ($_ =~ /^.*type.*=.*controller.*$/i) {
$ctrl = 1;
}
if ($ctrl && $_ =~ /}/) {
$ctrl = 0;
}
- if ($_ =~ /lmtp\s*{/i || $_ =~ /delivery\s*{/i) {
+ if ($_ =~ /^.*type.*=.*(?:lmtp|delivery).*$/i) {
$skip = 1;
}
if ($skip && $_ =~ /}/) {