From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71053 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Re: Partial article download Date: Sun, 19 Sep 2010 14:18:51 +1000 Message-ID: <87zkvepdqs.fsf@rimspace.net> References: <87eicqn0dh.fsf@dod.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1284870927 13839 80.91.229.12 (19 Sep 2010 04:35:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Sep 2010 04:35:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M19426@lists.math.uh.edu Sun Sep 19 06:35:26 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OxBcZ-0007PS-Me for ding-account@gmane.org; Sun, 19 Sep 2010 06:35:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OxBcR-0006At-W0; Sat, 18 Sep 2010 23:35:16 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OxBcQ-0006Ag-4K for ding@lists.math.uh.edu; Sat, 18 Sep 2010 23:35:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OxBcL-0005N7-RS for ding@lists.math.uh.edu; Sat, 18 Sep 2010 23:35:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OxBcL-0003rH-00 for ; Sun, 19 Sep 2010 06:35:09 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OxBcK-0007MG-CN for ding@gnus.org; Sun, 19 Sep 2010 06:35:08 +0200 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 06:35:08 +0200 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 06:35:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:x8BCvsSJKhu+++JMZHfczAxN+SI= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71053 Archived-At: Lars Magne Ingebrigtsen writes: > Steinar Bang writes: > >> Do you know that the text/plain part is always the first part >> of a message? Wouldn't it be better to just pull down all text/plain >> parts of a message? > > Hm. Yes... when requesting the headers on group entry, I can also ask for > the article structure. So when it comes time to request the article, it > should be easy enough to ask for all the text/plain parts. Or perhaps all > text/* parts? Well, that can be user-configurable. Generally, I would expect all you to fetch all the structural (multipart/*) and inline (*/*) parts, other than the ones that were not going to be displayed because they were the lower priority part of a multipart/alternative chunk of main. OTOH ... >> But whatever way you do it, partial downloading should cooperate nicely >> with the agent. > > If we have a "fetch complete article" message, it could just bind the agent > thing to nil and then request it straight from the IMAP server? Then things > should Just Work. That is, the partial articles would be downloaded by the > agent and stored. ... I very strongly favour this being an "implementation detail" that I have absolutely no visibility of as an end user. (Well, save for offline operation or whatever.) Way back when I vaguely thought about this I envisioned rewriting the MIME bits so the interface between the backend and the rest of Gnus was based on fetching the MIME structure, then fetching individual parts while rendering. That would allow the IMAP implementation to delegate that to the server, but the NNTP (etc) implementation to use a common function that basically emulated the same stuff on top of the entire article. Daniel I never wrote working code, though, so I don't know it counts. -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons