On Wed, Jan 20, 2010 at 11:17:48PM +0100, Mike Hommey wrote: > Package: debbugs > Severity: normal > Tags: patch > > A few bugs, such as #145541 or $70041 have a report with Content-Type: text. > > Like with #565981, it may have an impact on the indexing of such bugs. > > The attached patch should fix the problem.
Erm, obviously, please scrap the second hunk. > --- /org/bugs.debian.org/perl/Debbugs/MIME.pm 2010-01-06 07:54:36.000000000 > +0000 > +++ /home/glandium/Debbugs/MIME.pm 2010-01-20 22:14:55.000000000 +0000 > @@ -57,7 +57,7 @@ > { > my $entity = shift; > my $type = $entity->effective_type; > - if ($type eq 'text/plain' or > + if ($type eq 'text/plain' or $type eq 'text' or > ($type =~ m#text/# and $type ne 'text/html') or > $type eq 'application/pgp') { > return $entity->bodyhandle; > @@ -120,7 +120,7 @@ > > # Strip off RFC2440-style PGP clearsigning. > if (@bodylines and $bodylines[0] =~ /^-----BEGIN PGP SIGNED/) { > - shift @bodylines while @bodylines and length $bodylines[0]; > + shift @bodylines while @bodylines and $bodylines[0] =~ /\S/; > shift @bodylines while @bodylines and $bodylines[0] !~ /\S/; > for my $findsig (0 .. $#bodylines) { > if ($bodylines[$findsig] =~ /^-----BEGIN PGP SIGNATURE/) { -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org