From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56495 Path: main.gmane.org!not-for-mail From: sigurd@12move.de (=?iso-8859-1?q?Karl_Pfl=E4sterer?=) Newsgroups: gmane.emacs.gnus.general Subject: Bug in deleting attachments Date: Tue, 02 Mar 2004 19:50:07 +0100 Organization: Lemis World Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078253584 24229 80.91.224.253 (2 Mar 2004 18:53:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2004 18:53:04 +0000 (UTC) Original-X-From: ding-owner+M5035@lists.math.uh.edu Tue Mar 02 19:52:57 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 1AyF0i-0002RB-00 for ; Tue, 02 Mar 2004 19:52:56 +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 1AyEzP-0004ip-00; Tue, 02 Mar 2004 12:51:35 -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 1AyEzH-0004ih-00 for ding@lists.math.uh.edu; Tue, 02 Mar 2004 12:51:27 -0600 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id 499463A01F2 for ; Tue, 2 Mar 2004 12:51:25 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1AyEzE-0003PD-00 for ; Tue, 02 Mar 2004 19:51:24 +0100 Original-To: ding@gnus.org Original-Path: wintendo.pflaesterer.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 50 Original-NNTP-Posting-Host: p62.246.47.167.tisdip.tiscali.de Original-X-Trace: quimby.gnus.org 1078253484 13094 62.246.47.167 (2 Mar 2004 18:51:24 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 2 Mar 2004 18:51:24 +0000 (UTC) X-Face: #iIcL\6>Qj/G*F@AL9T*v/R$j@7Q`6#FU&Flg6u6aVsLdWf(H$U5>:;&*>oy>jOIWgA%8w* A!V7X`\fEGoQ[@D'@i^*p3FCC6&Rg~JT/H_*MOX;"o~flADb8^ Mail-Copies-To: never User-Agent: Gnus/5.110002 (No Gnus v0.2) Hamster/2.0.4.0 Cancel-Lock: sha1:0JN91pVBuQPsocw+mpSYZ/awtQ8= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56495 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56495 Hi, today I tried to delete an attachment and always got the annoying error message: `This function is not implemented' (btw I find it misleading because the function is indeed implemented). I searched for the reason and found in `gnus-mime-delete-part' the following code: (if (mm-multiple-handles gnus-article-mime-handles) (error "This function is not implemented")) I looked further and saw that definition of `mm-multiple-handles' (defun mm-multiple-handles (handles) (and (listp handles) (> (length handles) 1) (or (listp (car handles)) (stringp (car handles))))) The value of `gnus-article-mime-handles' in that case was: ("multipart/mixed" (#"> ("text/html" (charset . "us-ascii")) 7bit (lambda nil (let (buffer-read-only) (delete-region # #))) nil nil nil nil) (#"> ("application/x-zip-compressed" (name . "Raging Cajun.zip")) base64 nil ("inline" (filename . "Raging Cajun.zip")) nil nil nil))) It was in a nnml group (which supports article editing) and the application of mm-multiple-handles on that value gives t which returns that error message (which is that just wrong here). I changed the definition of `mm-multiple-handles' so that nil was returned and the function `gnus-mime-delete-part' ran without problem. I'm not sure at the moment what the exact reason of the bug is (I don't know what `mm-multiple-handles' is exactly testing). Can anyone shed some light on that? KP -- And has thou slain the Jabberwock? Come to my arms, my beamish boy! O frabjous day! Callooh! Callay!' He chortled in his joy. "Lewis Carroll" "Jabberwocky"