summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-11 16:37:49 +0000
committerfukachan <fukachan>2001-04-11 16:37:49 +0000
commit41ccaedcce9505fc8bc2a5dd6f2efaf23cd6222c (patch)
treeaec1aec1a5fc93dd84bcbc1d774879c27e04ef25 /fml/lib
parent2b2a56fdba2ec715c2f1c615a7a94250bf99db07 (diff)
downloadfml8-41ccaedcce9505fc8bc2a5dd6f2efaf23cd6222c.tar.gz
fml8-41ccaedcce9505fc8bc2a5dd6f2efaf23cd6222c.tar.bz2
fml8-41ccaedcce9505fc8bc2a5dd6f2efaf23cd6222c.zip
nuke debug
debug on if $ENV{'debug'} is defined.
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/Mail/Bounce/SimpleMatch.pm18
1 files changed, 4 insertions, 14 deletions
diff --git a/fml/lib/Mail/Bounce/SimpleMatch.pm b/fml/lib/Mail/Bounce/SimpleMatch.pm
index 682ac7d9..936a0679 100644
--- a/fml/lib/Mail/Bounce/SimpleMatch.pm
+++ b/fml/lib/Mail/Bounce/SimpleMatch.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: SimpleMatch.pm,v 1.4 2001/04/10 11:52:26 fukachan Exp $
+# $FML: SimpleMatch.pm,v 1.1 2001/04/11 16:17:41 fukachan Exp $
#
@@ -22,18 +22,6 @@ Mail::Bounce::SimpleMatch - SimpleState error message format parser
=head1 DESCRIPTION
-
- $result = {
- addr => {
- Original-Recipient => 'rfc822; addr'
- Final-Recipient => 'rfc822; addr'
- Diagnostic-Code => 'reason ...'
- Action => 'failed'
- Status => '4.0.0'
- }
- }
-
-
=head1 SIMPLE STATE MACHINE
Please write C<regexp> pattern to clarify the following states.
@@ -53,6 +41,8 @@ When we trap C<end>, the state changes from l to 0.
=cut
+my $debug = $ENV{'debug'} ? 1 : 0;
+
my $address_trap_regexp = {
'biglobe.ne.jp' => {
'start' => '----- The following addresses had delivery problems -----',
@@ -106,7 +96,7 @@ sub _address_match
SCAN:
for (@buf) {
- print "scan> $_\n";
+ print "scan> $_\n" if $debug;
last SCAN if /$end_regexp/;
if (/(\S+\@\S+)/) {