[CentOS] SOLVED (Re: Openwebmail emergency (Perl))

Tue Oct 12 10:50:16 UTC 2010
Jussi Hirvi <listmember at greenspot.fi>

Ok, I found a fix. I had to learn a little perl for that. :-)

The offending file was /var/www/cgi-bin/openwebmail/shared/ow-shared.pm

In that file, at the top of subroutine httpprint:

# ADDED:
     use IO::Compress::Gzip qw(gzip $GzipError) ;

Further down in that subroutine, around line 1175:

# REMOVED:
     my $zhtml=Compress::Zlib::memGzip(join('',@{$r_htmls}));
# ADDED
         my $zhtml;
         my $input = join('',@{$r_htmls});
         gzip  \$input => \$zhtml or die "gzip failed: $GzipError\n";


I will do the same fix to the other occurrences, and trust that it will 
work!!

Many thanks to all, especially David!

- Jussi

-- 
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi at greenspot.fi * http://www.greenspot.fi