From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48223 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-mime-copy-part and jka-compr Date: Sat, 28 Dec 2002 22:16:50 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: <87n0o7ajze.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041110396 914 80.91.224.249 (28 Dec 2002 21:19:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 21:19:56 +0000 (UTC) Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SON9-0000Ec-00 for ; Sat, 28 Dec 2002 22:19:55 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18SOKU-0003SJ-00; Sat, 28 Dec 2002 15:17:10 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 28 Dec 2002 15:18:02 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA06559 for ; Sat, 28 Dec 2002 15:17:48 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18SOKD-0006Tw-00 for ; Sat, 28 Dec 2002 22:16:53 +0100 Original-To: ding@hpc.uh.edu Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 25 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041110213 24032 80.91.231.2 (28 Dec 2002 21:16:53 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 28 Dec 2002 21:16:53 GMT Mail-Copies-To: never X-Now-Playing: Stereolab's _ABC Music (1)_: "Working Title (The Pram Song) (Seeperbold*)" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: |J writes: > I wonder if it'd be possible for gnus-mime-copy-part (`c') to > automatically decompress a file like foo.tar.bz2 in a message. > > It doesn't seem to cooperate with auto-compression-mode at the moment. > It ends up with a buffer that's still got the compressed data but has > been put into tar-mode, which of course is not right. That's an interesting problem. The solution is probably also very interesting, but I don't quite see how. `c' just puts the bytes in a buffer and calls `normal-mode', which will make the right mode appear. However, for strange modes like tar mode, that just doesn't seem to work -- it gets triggered even though the file is called .tar.gz, but doesn't seem to accept having gzipped contents. So -- should `c' run stuff through jka to decompress things? And how is that done without actually putting things in a file? Anybody got any ideas? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen