Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: Time for partial download of nnimap messages again?
Date: Fri, 26 Jul 2002 21:51:06 +0200	[thread overview]
Message-ID: <ilu65z2w9n9.fsf@latte.josefsson.org> (raw)
In-Reply-To: <87sn2gzx0y.fsf@doohan.bang.priv.no> (Steinar Bang's message of "Thu, 18 Jul 2002 20:55:09 +0200")

Steinar Bang <sb@dod.no> writes:

> Now that agent is always used by nnimap as a local cache

I'm not convinced the change is good, there are at least some known
problems we need to solve:

1) The daemon stopped working for someone, probably related by this
   change.

2) Expiring the agent directory doesn't happen automatically.  This
   might be what some people want, but not others.

3) Unagentized nnimap (and other) servers do not get local caching at
   all.  Which means people that don't agentize their nnimap server
   actually get no overview cache at all, since the nnimap cache has
   been disabled. Bad bad!  I think non-local servers should be
   agentized by default, but I'm not sure how to change it in a
   backwards compatible way.

4) Slowness in expiring?  Fixed?

5) Any mark problems still occuring?

If those who disabled the agent re-enabled it and reported the
problems they see, it would be very useful.  If there are more
undiscovered problems that looks difficult to solve, reverting the
default value change should be considered.

> it may be time to once more start looking at partial downloads of
> MIME messages?

Feel free to do so. :-)

> Eg. downloading the text part, but leave that big videoclip on the
> server, until we decide to look at it.
>
> A quick revisit of the idea:
>  - in the agent cache, replace the delayed parts with a
>    message/external-body URL part
> 	<http://www.faqs.org/rfcs/rfc2017.html>
>    where the URL is an IMAP URL:
> 	<http://www.faqs.org/rfcs/rfc2192.html>
>  - when the user wishes to view or save the delayed part, it is
>    downloaded from the server, and the message/external-body is
>    replaced with the actual part
>
> What Simon didn't like about this, IIRC, was that you changed the
> message from the original.
>
> But you don't, really.  The original message is kept in its priestine
> state on the server.  What happens to the cached message is just an
> internal Gnus implementation issue, IMO.

Yup.  I have troubles visualising how the UI for this would work
though.  It should handle disconnected support too.  But I guess it
isn't impossible to do.  Let's see.

1) Have a nnimap-undownload-part variable that can contain predicates
   such as (and (string= content-type "audio/mp3") (> size 123456))
   that says which parts to not download.

2) In nnimap-request-article (possibly with help from
   nnimap-request-headers for simple predicates) evaluate the
   predicate and download all other MIME parts, and replace the
   offending part with the multipart/external IMAP URL stuff.

3) In gnus, somehow add a mark saying that an article is not fully
   downloaded.  Maybe a agent specific mark?

4) In gnus, mark the MIME button for replaced entities somehow, to
   make it clear that Gnus replaced it.

5) In gnus, have a command to re-download the whole message.  It
   should work even when disconnected (compare the @ download mark).

6) In gnus, somehow fix C-d to reflect the external property as well?

As I personally don't really need the feature, I don't think I'll do
much more than this though. :-)




  parent reply	other threads:[~2002-07-26 19:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-18 18:55 Steinar Bang
2002-07-18 19:36 ` Kai Großjohann
2002-07-18 21:47   ` Steinar Bang
2002-07-19  7:25     ` Kai Großjohann
2002-07-19  7:34       ` Steinar Bang
2002-07-19  8:11         ` Kai Großjohann
2002-07-19  7:48   ` Steinar Bang
2002-07-19  8:13     ` Kai Großjohann
2002-07-19 10:56       ` Steinar Bang
2002-07-26 19:59         ` Simon Josefsson
2002-07-27  9:47           ` Steinar Bang
2002-07-27 14:09             ` Simon Josefsson
2002-07-29 23:10               ` Wes Hardaker
2002-07-26 19:55   ` Simon Josefsson
2002-07-26 19:51 ` Simon Josefsson [this message]
2002-07-27  9:42   ` Steinar Bang

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