From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7050 Path: news.gmane.org!not-for-mail From: era eriksson Newsgroups: gmane.emacs.gnus.user Subject: Wishlist: gnus-summary-save-parts: save all parts Date: Wed, 12 Apr 2006 09:57:30 +0000 (UTC) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1144837235 14800 80.91.229.2 (12 Apr 2006 10:20:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2006 10:20:35 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Apr 12 12:20:33 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTcSa-0006a4-No for gegu-info-gnus-english@m.gmane.org; Wed, 12 Apr 2006 12:20:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTcSa-0003lj-3K for gegu-info-gnus-english@m.gmane.org; Wed, 12 Apr 2006 06:20:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FTcSY-0003lY-Az for info-gnus-english@gnu.org; Wed, 12 Apr 2006 06:20:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FTcSV-0003ko-M5 for info-gnus-english@gnu.org; Wed, 12 Apr 2006 06:20:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTcSV-0003kl-JE for info-gnus-english@gnu.org; Wed, 12 Apr 2006 06:20:23 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FTcXZ-0008HV-Gj for info-gnus-english@gnu.org; Wed, 12 Apr 2006 06:25:37 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FTcSB-0006Wd-Cu for info-gnus-english@gnu.org; Wed, 12 Apr 2006 12:20:05 +0200 Original-Received: from fsproxy1.f-secure.com ([193.110.108.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 12:20:02 +0200 Original-Received: from era+gmane by fsproxy1.f-secure.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Apr 2006 12:20:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: info-gnus-english@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 193.110.108.67 (Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7050 Archived-At: On a message with multiple message/rfc822 attachments, I found that `X m' would only save the last part (possibly it saved the earlier parts under the same name, or something). It would seem that it is useful only when each part has a filename= or name= parameter. It would be useful and probably closer to user expectations if it could come up with a unique name for each part which doesn't otherwise have one. As a workaround, running Esc 2 K o (filename) RET, Esk 3 K o (filename) RET etc works when you have a small number of attachments. Then you get to name each file on the fly. For a message with 61 attachments, I came up with the following M-x eval: (let ((i 2)) (while (< i 63) ;; This snippet divinely inspired by code from from gnus-sum.el and mm-decode.el (set-buffer gnus-article-buffer) (gnus-article-goto-part i) (mm-save-part-to-file (cdr (assq i gnus-article-mime-handle-alist)) (concat "/tmp/parts/" (int-to-string i) ".msg")) (setq i (1+ i)) ) ) Obviously, this could be generalized to a function which loops exactly as many times as required for each message, asks for a directory name and/or perhaps a filename template, checks that the directory exists, etc. I had a quick look at the current CVS sources on Quimby, and could not see any changes to the parts of the code where this is handled, compared to what I have in my Gnus 5.10 on Ubuntu Breezy ("Version: 5.10.6-0.CVS.20050610-1") /* era */ -- If this were a real .signature, it would suck less. Well, maybe not.