[Mailman-Developers] Handling of private gzipped archives

Barry Warsaw barry at python.org
Thu Aug 28 03:08:31 EDT 2003


On Tue, 2003-08-26 at 17:06, Matthew Galgoci wrote:
> Hi Folks!

Hi Matthew!

> I checked Mailman 2.1.2 to see if any of this is still done, and apparently the decompression issue still is, at
> least in the copy I have here. (haven't checked cvs head). Here's my version of a fix for this:
> 
> --- mailman-2.1.2/Mailman/Cgi/private.py.orig   2003-08-26 16:46:16.000000000 -0400
> +++ mailman-2.1.2/Mailman/Cgi/private.py        2003-08-26 16:47:21.000000000 -0400
> @@ -148,8 +148,8 @@
>                                    mlist.internal_name() + '.mbox'))
>              ctype = 'text/plain'
>          elif true_filename.endswith('.gz'):
> -            import gzip
> -            f = gzip.open(true_filename, 'r')
> +            ctype = 'application/x-gzip'
> +            f = open(true_filename, 'r')
>          else:
>              f = open(true_filename, 'r')
>      except IOError:

Could you please submit a SF patch on this?  Less of a chance of getting
lost in my inbox. ;)

-Barry





More information about the Mailman-Developers mailing list