Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Do nnmail-split-fancy-with-parent for nnimap?
Date: Sat, 05 Oct 2002 20:52:30 -0400	[thread overview]
Message-ID: <m3k7kwe6cx.fsf@heechee.beld.net> (raw)
In-Reply-To: <87lm5cij8u.fsf@crybaby.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sun, 06 Oct 2002 01:00:33 +0200")

On Sun, 06 Oct 2002, Kai.Grossjohann@CS.Uni-Dortmund.DE wrote:
>> Why not store the group name as Gnus shows it, e.g. when moving
>> articles?  nnxyz+abcdef:groupname is what I'm thinking of.  Then
>> the unqualified groups are in the primary backend - as they would
>> be if you manually moved articles around.  I'm talking as a Gnus
>> user, maybe the implementation is much more complex that way.  I
>> don't know the internals of mail moving.
> 
> The problem is backward compatibility.  Suppose people have nntp as
> their primary server, and nnml and nnimap as secondary servers.
> Then right now foo.bar means the group nnml:foo.bar (because nnml is
> the "primary mail backend"), but your suggestion would change it to
> mean a group on the nntp server.

Right, so the problem is that right now, the cache assumes nnml.  You
could have a cache version at the top of the file (like BBDB), and
upgrade users to the newer cache version when they run the new
function, rewriting every group name to "nnml:groupname".

Or you could have a file called .nnimap.cache, separate from the nnml
cache.

> (One possibility would be to make all groups be prefixed, maybe
> we could use "native" for the primary server.)

That's what I was thinking, but realize that the "native" prefix or
whatever we use for the primary server is superfluous - if it's an
arbitrary string, you may as well skip it.

>>> It would be really cool if ~/.nnmail-cache was stored on the
>>> server somehow.  Is there a way to store data like this alongside
>>> IMAP mail on a server?
>>
>> I think the network usage would be too high for this.
> 
> You must be kidding.  Right now, nnimap splitting transfers each
> message over the net twice (one fetch from nnimap:INBOX, one put to
> the target group).  I don't see how it can hurt to add 60 or 80
> bytes to this traffic.

> (It conceivable that .nnmail-cache must always be transferred in
> full, maybe via ange-ftp.  This is a bad solution indeed, and for
> this your counter argument would be right.  I wasn't even
> considering such bad solutions before you mentioned the possibility
> :-)

You would have to either break up the cache in some way, or transfer
the entire cache every time.  You can store the cache in a group
(e.g. "gnus-imap-split-cache") that would basically be a mail group
like any other; corruption of its data is the user's problem.  Any
other storage of the cache would need support on the IMAP server,
AFAIK.

Now, if you transfer the entire cache, the chance of data corruption
is smaller, and the code is much simpler.  That's the solution I
thought of, initially.

Breaking up the cache in some way would complicate the code
considerably.  Also, you would have to devise an efficient way to
search all the cache elements for an article ID, or have the subject
of each article in the cache group somehow contain the article ID.

Either way, with a single cache, or with a piecemeal cache, it's a lot
of traffic when your cache grows to 50000 articles.

Am I missing something obvious?

Ted




  parent reply	other threads:[~2002-10-06  0:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-05 22:41 Kai Großjohann
2002-10-05 22:56 ` Ted Zlatanov
2002-10-05 23:00   ` Kai Großjohann
2002-10-06  0:47     ` Simon Josefsson
2002-10-06  8:28       ` Kai Großjohann
2002-10-06  0:52     ` Ted Zlatanov [this message]
2002-10-06  8:34       ` Kai Großjohann
2002-10-08 18:28       ` Paul Jarc
2002-10-06  0:43 ` Simon Josefsson
2002-10-06  8:26   ` Kai Großjohann
2002-10-08 22:00     ` Andi Hechtbauer
2002-10-07  3:17 ` Danny Siu

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=m3k7kwe6cx.fsf@heechee.beld.net \
    --to=tzz@lifelogs.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).