From 764af08d720978fc78dacc499b0440b2e476c71b Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 7 Jul 2012 13:44:58 -0700 Subject: [PATCH] use :raw for the mail messages --- cgi/bugreport.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 0a66311..de4ec76 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -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, -- 2.39.2