]> git.donarmstrong.com Git - debbugs.git/commitdiff
use :raw for the mail messages
authorDon Armstrong <don@donarmstrong.com>
Sat, 7 Jul 2012 20:44:58 +0000 (13:44 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 7 Jul 2012 20:44:58 +0000 (13:44 -0700)
cgi/bugreport.cgi

index 0a66311f71909229ddeb7f2bf8d5ac03c5cbfe3c..de4ec76371633cfe8d9760a14a7f6e2142df6250 100755 (executable)
@@ -171,6 +171,7 @@ if (defined($msg) and ($msg-1) <= $#records) {
 }
 my @log;
 if ( $mbox ) {
+     binmode(STDOUT,":raw");
      my $date = strftime "%a %b %d %T %Y", localtime;
      if (@records > 1) {
         print $q->header(-type => "text/plain",
@@ -245,6 +246,7 @@ END
 
 else {
      if (defined $att and defined $msg and @records) {
+        binmode(STDOUT,":raw");
          $msg_num++;
          print handle_email_message($records[0]->{text},
                                     ref => $ref,