From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/19020 Path: main.gmane.org!not-for-mail From: Stephen Zander Newsgroups: gmane.emacs.gnus.general Subject: Re: doubly-gzipped files Date: 19 Nov 1998 20:40:20 -0800 Sender: owner-ding@hpc.uh.edu Message-ID: <87n25nvux7.fsf@wsfs05.mckesson.com> References: <199811181538.KAA29104@alderaan.gsfc.nasa.gov> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157446 9412 80.91.224.250 (20 Oct 2002 23:44:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:44:06 +0000 (UTC) Cc: Gnus Mailing List Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA20767 for ; Fri, 20 Nov 1998 17:50:03 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB05238; Fri, 20 Nov 1998 16:49:50 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 20 Nov 1998 16:49:19 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id QAA03386 for ; Fri, 20 Nov 1998 16:49:10 -0600 (CST) Original-Received: from fwprv01.mckesson.com (info.mckesson.com [208.147.67.129]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id RAA20741 for ; Fri, 20 Nov 1998 17:49:00 -0500 (EST) Original-Received: from fwprv by fwprv01.mckesson.com (SMI-8.6/SMI-SVR4) id OAA21960; Fri, 20 Nov 1998 14:48:59 -0800 Original-Received: from srz by wsfs05.mckesson.com with local (Exim 2.04 #1 (Debian)) id 0zgiMm-00008y-00; Thu, 19 Nov 1998 20:40:20 -0800 Original-To: "Edward J. Sabol" Organisation: speaking through, but not for, McKesson Corp In-Reply-To: "Edward J. Sabol"'s message of "Wed, 18 Nov 1998 10:38:19 -0500" Original-Lines: 24 User-Agent: Gnus/5.070048 (Pterodactyl Gnus v0.48) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:19020 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:19020 >>>>> "Edward" == Edward J Sabol writes: Edward> How about at least turning off jka-compr when the Edward> Content-Type is application/x-gzip or the filename Edward> specified in the Content-Disposition ends with ".gz"? You Edward> can do the same for uuencoded attachments where the Edward> filename ends with ".gz" as well. That should catch just Edward> about all cases where the problem arises. Could you not just check the whether the attachment is compressed by looking at the file? If the first two bytes are \037\213 then it's likely that file was compressed with the gzip algorithm. Similarly, if the file starts with \037\235, it's likely file was compressed using LZW (aka compress). Checking the Content-Type is good, but determination of filetype by extension is *evil* :) -- Stephen --- Perl is really designed more for the guys that will hack Perl at least 20 minutes a day for the rest of their career. TCL/Python is more a "20 minutes a week", and VB is probably in that "20 minutes a month" group. :) -- Randal Schwartz