summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-14 14:44:23 +0000
committerfukachan <fukachan>2001-04-14 14:44:23 +0000
commit20648f1b13da14e8b7d63dc86c7cf4e0cc682458 (patch)
tree0b6130add9eca02b14e1ac1ec008d9b545ce0d0a /fml/lib/FML/Process
parent3f241c597114923152c842c22dfda55fa1d58ac1 (diff)
downloadfml8-20648f1b13da14e8b7d63dc86c7cf4e0cc682458.tar.gz
fml8-20648f1b13da14e8b7d63dc86c7cf4e0cc682458.tar.bz2
fml8-20648f1b13da14e8b7d63dc86c7cf4e0cc682458.zip
simple_loop_check() logs the result of loop checks
XXX now log only not exits when we detect loop.
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Kernel.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index 47c74807..99ac86ef 100644
--- a/fml/lib/FML/Process/Kernel.pm
+++ b/fml/lib/FML/Process/Kernel.pm
@@ -5,7 +5,7 @@
# redistribute it and/or modify it under the same terms as Perl itself.
#
# $Id$
-# $FML: Kernel.pm,v 1.39 2001/04/03 09:45:43 fukachan Exp $
+# $FML: Kernel.pm,v 1.40 2001/04/08 06:13:16 fukachan Exp $
#
package FML::Process::Kernel;
@@ -346,14 +346,21 @@ sub simple_loop_check
my $config = $curproc->{ config };
my $r_msg = $curproc->{ incoming_message };
my $header = $r_msg->{ header };
+ my $match = 0;
for my $rule (split(/\s+/, $config->{ header_check_rules })) {
if ($header->can($rule)) {
- $header->$rule($config, $args);
+ $match = $header->$rule($config, $args) ? $rule : 0;
}
else {
Log("header->${rule}() is undefined");
}
+
+ last if $match;
+ }
+
+ if ($match) {
+ Log("mail loop detected for $match");
}
}