Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: fetch only a portion of an article? (nnimap mainly)
Date: Fri, 04 Mar 2005 23:51:06 +0100	[thread overview]
Message-ID: <iluu0nrja91.fsf@latte.josefsson.org> (raw)
In-Reply-To: <4nfyzbi3yo.fsf@lifelogs.com> (Ted Zlatanov's message of "4 Mar 2005 14:52:15 -0500")

"Ted Zlatanov" <tzz@lifelogs.com> writes:

> In Gnus, you call gnus-request-article to get an article.  What if you
> know you only need the first N lines (or bytes)?  Can nnimap.el
> support that?  I can change the gnus-request-article function to
> accomodate such an option, and it will be passed to
> nnimap-request-article.  I just don't know enough about the IMAP
> protocol to implement it.
>
> I need this specifically for nnimap interactions, but I'm sure it can
> be implemented for other backends as well.  It's useful, for instance,
> when summarizing something about the contents of the article, but you
> don't want to fetch more than N lines of it.  I would use it to
> summarize qmail bounce reports - right now, I have to fetch the whole
> article just because I need to see what's in the first 10 lines.

IMAP support partial retrieval (byte counts), and even retrieval based
on the selected MIME structures (i.e., retrieve entire message except
one big attachment).  I think the problem may be in designing the back
end interface properly, so it is flexible enough.  Ideally there
should be some way to retrieve the MIME structure of an article, and
then make Gnus chose which MIME parts to retrieve.  But having a line
count may be sufficient as a start.  However, there is a big problem
with caching.  If an incomplete article ends up in the asynchronous
pre-fetcher, agent cache, user cache, etc, it will require some
tinkering to invalidate that copy and force a re-query on the entire
article.



  reply	other threads:[~2005-03-04 22:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04 19:52 Ted Zlatanov
2005-03-04 22:51 ` Simon Josefsson [this message]
2005-03-07 18:11   ` Ted Zlatanov
2005-03-07 19:26     ` Simon Josefsson
2005-03-08 15:58       ` Ted Zlatanov
2005-03-08 17:54         ` Simon Josefsson
2005-03-22 19:30           ` Ted Zlatanov

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=iluu0nrja91.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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).