From: Don Armstrong Date: Mon, 12 May 2008 02:22:02 +0000 (-0700) Subject: * Properly handle \n line terminated emails X-Git-Tag: release/2.6.0~489^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7c5d68a73282d0bde5b9c407ef61f9c36b9d1b12;p=debbugs.git * Properly handle \n line terminated emails --- diff --git a/scripts/service.in b/scripts/service.in index 1cf8460..05925d2 100755 --- a/scripts/service.in +++ b/scripts/service.in @@ -66,7 +66,7 @@ if ($entity and $entity->head->tags) { @{$entity->head->header}; my $entity_body = getmailbody($entity); - @bodylines = map {s/\r\n$//; $_;} + @bodylines = map {s/\r?\n$//; $_;} $entity_body ? $entity_body->as_lines() : (); } else { # Legacy pre-MIME code, kept around in case MIME::Parser fails.