diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-24 17:09:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-24 17:09:57 +0400 |
commit | a99a4bf8d2241b19b70c16fa12f3ed7f3f96ae68 (patch) | |
tree | 41843c09bb74b549a0ff5b6b82bd33849fe192cb /rspamc.pl.in | |
parent | e454ec3f7b08364f0b884692d80ea4b1b95e6901 (diff) | |
download | rspamd-a99a4bf8d2241b19b70c16fa12f3ed7f3f96ae68.tar.gz rspamd-a99a4bf8d2241b19b70c16fa12f3ed7f3f96ae68.zip |
* Rework structure of sample configs
* Fix rspamc
* Add english readme
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 4 |
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 && $_ =~ /}/) { |