From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56705 Path: main.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug in deleting attachments Date: Fri, 12 Mar 2004 14:46:53 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079099278 29046 80.91.224.253 (12 Mar 2004 13:47:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 13:47:58 +0000 (UTC) Original-X-From: ding-owner+M5244@lists.math.uh.edu Fri Mar 12 14:47:49 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1n0v-00022W-00 for ; Fri, 12 Mar 2004 14:47:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1B1n0F-0006v8-00; Fri, 12 Mar 2004 07:47:07 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B1n06-0006v0-00 for ding@lists.math.uh.edu; Fri, 12 Mar 2004 07:46:58 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 313E73A0043 for ; Fri, 12 Mar 2004 07:46:57 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B1n03-0007nd-00 for ; Fri, 12 Mar 2004 14:46:55 +0100 Original-Received: from 134.147.94.217 ([134.147.94.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Mar 2004 14:46:55 +0100 Original-Received: from Stephen.Berman by 134.147.94.217 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Mar 2004 14:46:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 134.147.94.217 User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56705 On Fri, 12 Mar 2004 20:19:32 +0900 Katsumi Yamaoka wrote: > > You can save either the whole forwarded message or only the > attachment-1 into a local file by typing the `o' key at the > button-2 or button-4 respectively. That is convenient. The > reason you can do it is because Gnus has prepared raw contents > on the hidden buffers for all the buttons. It means both the > buffer for the button-2 and the buffer for the button-4 contain > the same attachment-1. > > Even if you can delete the attachment-1 by typing the `d' key at > the button-4, the same attachment-1 is still in the hidden > buffer for the button-2. And there is no way to delete it. > This is the reason why deleting parts is impossible. I see now, thanks. I wonder if it would be worthwhile to implement a function to split a message up into its constituent MIME parts without overlap in the hidden buffers, at the cost, of course, of permanently destroying the MIME structure, making restoration impossible. (Maybe this would be no different than just editing the message by hand, but more convenient for things like deleting an attachment.) > Another difficulty is in restoring the MIME structure. Although > I wrote that the forwarded message contains two attachments, the > attachment-2 may not belong to the forwarded message. Who knows > if it doesn't belong to the main message? That is, there is no > information for restoring them correctly, so we can't resave the > modified message into a file. It may not need to be completely > correct, though. Maybe this is the trade-off users would have to accept if they allow the MIME structure to be destroyed (by calling a function like the one I speculated about above). --Steve Berman