X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2dcf8c5effd7a1baff888daecf387d8387e0cc43..8f0a7e37be571d7cf8152306ed1e8f1c03ba15ec:/docs/contrib/replyfilter diff --git a/docs/contrib/replyfilter b/docs/contrib/replyfilter index a080710d..8e591bd0 100755 --- a/docs/contrib/replyfilter +++ b/docs/contrib/replyfilter @@ -321,7 +321,7 @@ sub process_text (*$$;$) # Send our input to the filter program # - if (defined %filterreplace) { + if (%filterreplace) { foreach my $match (keys %filterreplace) { $text =~ s/$match/$filterreplace{$match}/g; } @@ -661,15 +661,15 @@ sub null_decoder ($) sub match_boundary($$) { - my ($_, $boundary) = @_; + my ($line, $boundary) = @_; return if ! defined $boundary; - if (substr($_, 0, 2) eq '--') { - s/[ \t\r\n]+\Z//; - if ($_ eq "--$boundary") { + if (substr($line, 0, 2) eq '--') { + $line =~ s/[ \t\r\n]+\Z//; + if ($line eq "--$boundary") { return 'EOP'; - } elsif ($_ eq "--$boundary--") { + } elsif ($line eq "--$boundary--") { return 'EOM'; } }