diff options
| author | fukachan <fukachan> | 2001-05-20 12:58:24 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-05-20 12:58:24 +0000 |
| commit | 16faa87485a48a213c40457483e59bc24b005478 (patch) | |
| tree | c9acfe36a39b31b2c976483c060bd5e3ee607443 /fml | |
| parent | 598dfb0223388bd542de4a2b38a12a40c7d6e1e2 (diff) | |
| download | fml8-16faa87485a48a213c40457483e59bc24b005478.tar.gz fml8-16faa87485a48a213c40457483e59bc24b005478.tar.bz2 fml8-16faa87485a48a213c40457483e59bc24b005478.zip | |
verify $end_regexp is not empty
clean up comments
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/Mail/Bounce/SimpleMatch.pm | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/fml/lib/Mail/Bounce/SimpleMatch.pm b/fml/lib/Mail/Bounce/SimpleMatch.pm index 87793d35..4ba5208e 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.15 2001/04/15 14:35:35 fukachan Exp $ +# $FML: SimpleMatch.pm,v 1.16 2001/04/21 16:54:24 fukachan Exp $ # @@ -144,15 +144,16 @@ my $reason_trap_regexp = { sub analyze { my ($self, $msg, $result) = @_; + my $m; - # process control block + # variables to hold current states my $args = { state => 0, result => $result, }; # skip the first header part and search "text/*" in the body part(s). - my $m = $msg->rfc822_message_body_head; + $m = $msg->rfc822_message_body_head; $m = $m->find( { data_type_regexp => 'text' } ); if (defined $m) { @@ -232,10 +233,12 @@ sub _address_match SCAN: for (@buf) { - print "scan($args->{ mta_type })> $_\n" if $debug; - last SCAN if /$end_regexp/; + print "scan($args->{ mta_type })|state=$args->{state}> $_\n" + if $debug; + last SCAN if $end_regexp && /$end_regexp/; - if (/(\S+\@\S+)/) { + if (/(\S+\@\S+)/) { + if ($debug) { print "trap address ($1)\n";} my $addr = $self->address_clean_up($mta_type, $1); if ($addr) { $result->{ $addr }->{ 'Final-Recipient' } = $addr; |
