projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57581b5
)
Minor changes to replyfilter to make it compatible with older versions of Perl.
author
Ken Hornstein
<kenh@pobox.com>
Thu, 17 May 2012 12:34:29 +0000
(08:34 -0400)
committer
Ken Hornstein
<kenh@pobox.com>
Thu, 17 May 2012 12:34:29 +0000
(08:34 -0400)
docs/contrib/replyfilter
patch
|
blob
|
history
diff --git
a/docs/contrib/replyfilter
b/docs/contrib/replyfilter
index
2e98794
..
8e591bd
100755
(executable)
--- a/
docs/contrib/replyfilter
+++ b/
docs/contrib/replyfilter
@@
-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';
}
}