Gnus development mailing list
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: ding@gnus.org
Subject: Re: Partial article download
Date: Sun, 19 Sep 2010 14:18:51 +1000	[thread overview]
Message-ID: <87zkvepdqs.fsf@rimspace.net> (raw)
In-Reply-To: <m38w2yslrt.fsf@quimbies.gnus.org>

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Steinar Bang <sb@dod.no> 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




  reply	other threads:[~2010-09-19  4:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-18 21:48 Lars Magne Ingebrigtsen
2010-09-18 22:33 ` Steinar Bang
2010-09-18 22:37   ` Lars Magne Ingebrigtsen
2010-09-19  2:27   ` Lars Magne Ingebrigtsen
2010-09-19  8:44     ` Steinar Bang
2010-09-19 11:58       ` Lars Magne Ingebrigtsen
2010-09-19 13:15         ` Steinar Bang
2010-09-18 22:38 ` Steinar Bang
2010-09-18 22:57   ` Lars Magne Ingebrigtsen
2010-09-19  4:18     ` Daniel Pittman [this message]
2010-09-19 11:57       ` Lars Magne Ingebrigtsen
2010-09-19 17:31         ` Lars Magne Ingebrigtsen
2010-09-19 13:18   ` Steinar Bang
2010-09-19 13:25     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkvepdqs.fsf@rimspace.net \
    --to=daniel@rimspace.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).