From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62654 Path: news.gmane.org!not-for-mail From: Jouni K Seppanen Newsgroups: gmane.emacs.gnus.general Subject: Re: downloading attachments on demand Date: Tue, 11 Apr 2006 23:26:57 +0300 Message-ID: <29acarvoxa.fsf@james.hut.fi> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144787549 5306 80.91.229.2 (11 Apr 2006 20:32:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2006 20:32:29 +0000 (UTC) Original-X-From: ding-owner+m11181@lists.math.uh.edu Tue Apr 11 22:32:26 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTPWy-0006ou-Ew for ding-account@gmane.org; Tue, 11 Apr 2006 22:32:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FTPWi-0007UJ-00; Tue, 11 Apr 2006 15:31:52 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FTPSl-0007UB-00 for ding@lists.math.uh.edu; Tue, 11 Apr 2006 15:27:47 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FTPSg-0006SA-TI for ding@lists.math.uh.edu; Tue, 11 Apr 2006 15:27:47 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FTPSc-0003tK-00 for ; Tue, 11 Apr 2006 22:27:38 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FTPSJ-0005ys-C9 for ding@gnus.org; Tue, 11 Apr 2006 22:27:20 +0200 Original-Received: from james.hut.fi ([130.233.173.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Apr 2006 22:27:19 +0200 Original-Received: from jks by james.hut.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Apr 2006 22:27:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: james.hut.fi Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAilBMVEWPd3I0Kx+Mb1t5XUV/ aWKukW9dRjBmTjyafW+hgWKCal7Bl3RhTDqTe2thSTByWUSXm3VeRzCdhnF9ZVhiTT2annd7YlKJ bVl3YFGAa2eWdViagmxrVkt8Zl9fSTWcel1YQy6boHaKc2yeg2+OcVyGbF6Ha1Wbj65nU0mehG67 k3BbRS+miGhnUUE1SAZ5AAACBElEQVRIx7XVwXqbMAwAYDcuMFepgI6QQhOM00RQ477/6+3gpJBY ZrtMNz70gyWQLYbHmMbDeBgPTVU1AxPi7qoZqx7nmBhzD0Z8jHEVhPmIaXeMgiOyUcVAUyKilHNm 2ZehWALEzAHYluqa6u9MKqtakiliw4MDZhbC2CBueZBiy+SDQsQDBxrccvlgETFlgOhxzwKQuKzi BzRb1DxwKeKRWVIZA5AtOzu/AUsVB2kIRpxsHEwBEFOkSQCQI2IIEGUM6JIBJ0wdgM5Jt9m1Fqe1 lp0GAIllABrswEo/PbkHnf8FcwctVwNuQVLS1pKI/BeWUuYynzCzqgzfMEw5OABIntzir3jqwarW QscU3fnnun4BoL+ursL3AGwJ4lH1lwBkq6B+C2qQ7Qr4nYRF/1Jr4JMB9dycANAbM0Dv8wBc3dyv WjDzMBetQFtQCub5uHAzffnJV5BbcFo5twqaW761Qf3Pa4CL5n8DzYLhvPhN7z/Fnt8qn6+3EyLa EBFREq7obvfW/1DC3YHyEsk/iwiIlX2MnnEvf+3RA2jOHKCTiB67xEwR6VdTCMGCU9IGYtPChzHG vIZAFEUC7cNo0xk8KIIBKowxDkDTwmjScAOFWAJRGOMBgL5ufaDJN+HDGGOMOS2BzzfulrknIrr1 7MvfLHZiBv4hO8d+CL+k3W4nhmH4A+ue3lwsh+WtAAAAAElFTkSuQmCC User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chestnut, linux) Cancel-Lock: sha1:En0a5T8Y/vtDzggAHWy+aQAmgcc= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62654 Archived-At: Sam Steingold writes: >> * Lars Magne Ingebrigtsen [2006-04-11 08:13:26 +0200]: >> Sam Steingold writes: >>> Is there a way to open a message without downloading all the attachments? >> >> If it's a multipart/mixed message, for instance, then there's >> probably no way to query the storage back ends for just the textual >> bits. At least nntp or pop doesn't support anything like that... > > All I care about is IMAP (and it appears that Evolution and Mozilla can > download just the text parts and the list of attachments, not the > attachments themselves). Yes, you can do that with IMAP. I just sent myself a message containing the word "foo", an attachment consisting of the word "bar", and my signature. Here's me querying the IMAP server about the message: a fetch 3475 bodystructure * 3475 FETCH (BODYSTRUCTURE (("text" "plain" NIL NIL NIL "8bit" 5 1 NIL NIL NIL)("text" "plain" NIL NIL NIL "8bit" 3 0 NIL ("attachment" NIL) NIL)("text" "plain" NIL NIL NIL "8bit" 12 2 NIL NIL NIL) "mixed" ("boundary" "=-=-=") NIL NIL)) a OK FETCH completed. You could almost use the Lisp reader on that... Here's how to get the first part: a fetch 3475 body[1] * 3475 FETCH (BODY[1] {5} foo ) * 3475 FETCH (FLAGS (\Seen \Recent)) a OK FETCH completed. Here's the attachment: a fetch 3475 body[2] * 3475 FETCH (BODY[2] {3} bar) a OK FETCH completed. And the final part: a fetch 3475 body[3] * 3475 FETCH (BODY[3] {12} -- Jouni ) a OK FETCH completed. (This is all documented in RFC 2060.) >From what I understand about the internal workings of Gnus, you'd have to alter the backend protocol to make use of this. Instead of getting a buffer filled with a message that it can parse for MIME structure, the frontend would ask for some sort of a pre-parsed message object, with stubs for the attachments, and only if the user wants to do anything with them, would the frontend query the backend for their contents. -- Jouni