- Make search case insensitive (closes: #448861)
- Add the ability to return source/package mapping
(closes: #465332,#458822)
+ - Deal properly with \r line endings (closes: #467190)
-- Colin Watson <cjwatson@debian.org> Fri, 20 Jun 2003 18:57:25 +0100
my (%bug_affected);
if ($entity and $entity->head->tags) {
- @headerlines = @{$entity->head->header};
- chomp @headerlines;
+ # Use map instead of chomp to also kill \r.
+ @headerlines = map {s/\r?\n?$//; $_;}
+ @{$entity->head->header};
my $entity_body = getmailbody($entity);
- @bodylines = $entity_body ? $entity_body->as_lines() : ();
- chomp @bodylines;
+ @bodylines = map {s/\r\n$//; $_;}
+ $entity_body ? $entity_body->as_lines() : ();
} else {
# Legacy pre-MIME code, kept around in case MIME::Parser fails.
my $i;