long_response($self, sub {
$r = $mm->msg_range(\$beg, $end, 'num');
scalar(@$r) or return;
- more($self, join("\r\n", map { "$_->[0]\r\n" } @$r));
+ more($self, join("\r\n", map { $_->[0] } @$r));
1;
});
} else { # grab every article number
my $off = bytes::length($$rbuf);
$r = $self->do_read($rbuf, LINE_MAX, $off) or return;
}
- while ($r > 0 && $$rbuf =~ s/\A[ \t\r\n]*([^\r\n]*)\r?\n//) {
+ while ($r > 0 && $$rbuf =~ s/\A[ \t]*([^\n]*?)\r?\n//) {
my $line = $1;
return $self->close if $line =~ /[[:cntrl:]]/s;
my $t0 = now();