Gnus development mailing list
 help / color / mirror / Atom feed
From: David Moore <dmoore@UCSD.EDU>
Subject: Re: Discussion: To del cached articles upon zapping group info?
Date: 13 Nov 1996 10:21:54 -0800	[thread overview]
Message-ID: <rvd8xh3lfh.fsf@sdnp5.ucsd.edu> (raw)
In-Reply-To: "Edward J. Sabol"'s message of Wed, 13 Nov 1996 11:50:25 -0500

"Edward J. Sabol" <sabol@alderaan.gsfc.nasa.gov> writes:

> IMHO, I think the negative numbers scheme is the best solution. It completely
> hides the problem from the user, and old cached articles will still appear in
> the newsgroup that you cached them in. It's very neat and tidy.

	I'm preferring the negative number scheme myself.  If you make
another directory for the old articles but still want them to appear
with the articles from the new server, you'd need to place a virtual
group on top of them.  I'm not too concerned about the performance of
doing this, but it makes maintaining your newsgroups a lot more
difficult.  You have files in multiple trees; every original newsgroup
is now 3 newgroups (1 old cache, 1 new nntp, 1 new virtual), etc.  Even
if you made the virtual groups dynmically without explicitly being in
the newsrc. you'd need to be careful about people's hooks checking the
method vs nntp and similar.

	Whereas if everything stays in the same cache file, but with
negative numbers for articles (-1..-N for N articles in orig cache), you
don't have to change any of the rest of your group setup (creating these
extra groups).

	Most things in the code would work fine if this change was made,
except a couple routines which filter out negative numbers in ranges, I
think.  Changing those to just filtering numbers outside of the
'cache+nntp' active range, as done in most other places should hopefully
make everything work.  But then, there might be some hidden dependencies
on the article numbers being positive that I'm missing.

	Another approach would be to put the articles in the cache
numbered 1..N, and store the delta N as a group parameter, and then just
add N to all article numbers returned by the backend for that group.
This adds more overhead to article fetching, and makes Xref's rather
challenging.

	Or you could let article numbers (internally to gnus) come as
dotted pairs: (component-number . article-number).  And you'd just
assign increasing component-numbers to each new nntp server you get.
Going this path means changing a lot more internal code, but you might
be able to leverage the functionality for nnvirtual and IMAP.  Although,
it's probably not worth it. ;)


-- 
David Moore <dmoore@ucsd.edu>       | Computer Systems Lab      __o
UCSD Dept. Computer Science - 0114  | Work: (619) 534-8604    _ \<,_
La Jolla, CA 92093-0114             | Fax:  (619) 534-1445   (_)/ (_)
<URL:http://oj.egbt.org/dmoore/>    | Solo Furnace Creek 508 -- 1996!


  reply	other threads:[~1996-11-13 18:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-08 14:17 Wesley.Hardaker
1996-11-09  1:17 ` David Moore
1996-11-09  2:59   ` Lars Magne Ingebrigtsen
1996-11-13 10:02     ` Wesley.Hardaker
1996-11-13 16:50       ` Edward J. Sabol
1996-11-13 18:21         ` David Moore [this message]
1996-11-14  7:20           ` Wesley.Hardaker
1996-11-14  9:01           ` Lars Magne Ingebrigtsen
1996-11-14  9:26             ` Per Abrahamsen
1996-11-14 13:32               ` Wesley.Hardaker
1996-11-15 21:53                 ` Lars Magne Ingebrigtsen
1996-11-15 22:12                 ` Paul Franklin
1996-11-16 18:23                   ` 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=rvd8xh3lfh.fsf@sdnp5.ucsd.edu \
    --to=dmoore@ucsd.edu \
    /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).