From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51197 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.gnus.general Subject: gnus-mime-copy-part and saving Date: Wed, 02 Apr 2003 11:42:30 +1000 Organization: Bah Humbug Sender: owner-ding@hpc.uh.edu Message-ID: <87vfxxhdyx.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1049262664 10002 80.91.224.249 (2 Apr 2003 05:51:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2003 05:51:04 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Wed Apr 02 07:51:03 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190b9L-0002bA-00 for ; Wed, 02 Apr 2003 07:51:03 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 190b6q-0005et-00; Tue, 01 Apr 2003 23:48:28 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 01 Apr 2003 23:49:32 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id XAA19409 for ; Tue, 1 Apr 2003 23:49:26 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.6/8.11.1) id h325mIt17296 for ding@hpc.uh.edu; Tue, 1 Apr 2003 23:48:18 -0600 Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id TAA19067 for ; Tue, 1 Apr 2003 19:44:33 -0600 (CST) Original-Received: (qmail 98424 invoked by alias); 2 Apr 2003 01:43:24 -0000 Original-Received: (qmail 98419 invoked from network); 2 Apr 2003 01:43:24 -0000 Original-Received: from snoopy.pacific.net.au (61.8.0.36) by 66.230.238.6 with SMTP; 2 Apr 2003 01:43:24 -0000 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-5) with ESMTP id h321hA5f005441 for ; Wed, 2 Apr 2003 11:43:16 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h321hAoJ020928 for ; Wed, 2 Apr 2003 11:43:10 +1000 (EST) Original-Received: from localhost (ppp95.dyn228.pacific.net.au [203.143.228.95]) by wisma.pacific.net.au (8.12.8/8.12.8) with ESMTP id h321h7qn027107 for ; Wed, 2 Apr 2003 11:43:08 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 190XGp-0004oe-00; Wed, 02 Apr 2003 11:42:31 +1000 Original-To: ding@gnus.org User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51197 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51197 --=-=-= I'm contemplating the way gnus-mime-copy-part ("c" on a button) sets up the buffer it shows. With a random 8-bit application/octet-stream, like r.gz below, viewing with "c" and then attempting to save with C-x C-s prompts for a coding system, and it seems even no-conversion doesn't give the right bytes. r.gz for instance should be 393 bytes, as revealled by an "o" save. And this is all of course with auto-compression-mode off so the zany jka-compr stuff doesn't get involved. Is there some magic gnus-mime-copy-part could or should do to give a buffer which is save-able? I guess making it unibyte (before inserting) would work, but I expect that's not good for viewing proper text files or stuff. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=r.gz Content-Transfer-Encoding: base64 H4sICA5GiT4AA3IAXZLNTuwwDIX3eQrvkBCUh0AIsbhXV5rhZ0lIXGqRJlXsDJSnx8507khsKqXx +Xx8nP1EDJEqBil1hVCyeMoMMiH4GiYSvWkVrylHXFA/WWCkhAyNMcLbCqW6T5IJ7mYfeADYG5Jy SC1qFZcZQfDrpCojxBLarBwvVDKMpcL930fX5QqzCsqCFVlAyhFrzSpfgc+xWzNWR7V5URdKZKmU 39kZ7igZWw7Wgbvq4Cv5N3UwOLczT6o20uWg5jZvGZXFCwbyCQ7asKu1cI8vZkXWBRnFdPPg9psP hsDXR4w14o/t0GmBVau+f2M3qtO0U6laeMaLzgG33ximztulcvAf/0OzhJ8RlloOFNH9Kyy7UGk5 5Wvzqz/Gs+JKl6D/vMBamq64pah6zbgP0pdXmmjoLD4l627BzCXSSOrMhj+FoeG96mrm4JeBa7iA 86ojzPpy0todPP3Zqc8HsXuvLZd1y9u93qCEm41xcVxkf0mayWOmr8H9AGPXeeeTAgAA --=-=-=--