Gnus development mailing list
 help / color / mirror / Atom feed
From: Neil Crellin <neilc@stanford.edu>
Subject: Re: "G r" not correctly handling nested nnml groups
Date: 23 Nov 1997 05:29:16 -0800	[thread overview]
Message-ID: <vb6pvnr7n83.fsf_-_@wallaby.Stanford.EDU> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 23 Nov 1997 06:54:55 +0100

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Neil Crellin <neilc@stanford.edu> writes:
> 
> > I have some groups I want to rename eg nnml:lists.foo -> nnml:old.foo.
> > Said groups have subfolders 
> > eg 
> >         nnml:lists.foo
> >         nnml:lists.foo.bounces                  
> > 
> > If I do a "B r lists.foo RET old.foo" it updates lists.foo fine,
> 
> `G r', you mean.

Obviously. I tried to supersede to correct this, no matter.

> > but leaves an entry in the *Group* buffer and my .newsrc.el* for
> > nnml:lists.foo.bounces.
> 
> Yes; so it should.

Except you then can't access that latter group, because the
intermediate directory path nnml-directory/lists/foo has been renamed
nnml-directory/old/foo, and accessing nnml-directory/lists/foo/bounces
fails with the errors

Retrieving newsgroup: nnml:lists.foo.bounces...
nnml-directory/lists/foo/bounces/ is not a directory
Couldn't request group nnml:lists.foo.bounces: nnml-directory/lists/foo/bounces/ is not a directory

and an attempt to rename lists.foo.bounces to old.foo.bounces in that
state using G r in the group buffer yields the errors

Renaming group nnml:lists.foo.bounces to nnml:old.foo.bounces...
Couldn't rename group nnml:lists.foo.bounces to nnml:old.foo.bounces

because the intermediate directory lists/foo is now old/foo.

> > If I rename nnml:lists.foo.bounces to nnml:old.foo.bounces instead,
> > I have an entry for lists.foo that can't access anything in the
> > folder thats now moved.
> 
> Uhm.  When you rename the second group, the first group reappears?

No, when I attempt the sequence in the other order: ie first G r
lists.foo.bounces to old.foo.bounces (succeeds, renames
nnml-directory/lists/foo/bounces to nnml-directory/old/foo/bounces)
the entry in the *Group* buffer for nnml:lists.foo remains behind, but
is inaccessible

Retrieving newsgroup: nnml:lists.foo...
nnml-directory/lists/foo/ is not a directory
Couldn't request group nnml:lists.foo: nnml-directory/lists/foo/ is not a directory

and any attempt to G r it to old.foo fails

Renaming group nnml:list.foo.bounces to nnml:old.foo.bounces...
Couldn't rename group nnml:lists.foo.bounces to nnml:old.foo.bounces

because there is no longer an intermediate directory lists/foo, it's
now old/foo. 

The problem is due to the nesting dependency as you can see.

-Neil Crellin <neilc@stanford.edu>


  reply	other threads:[~1997-11-23 13:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <vb6sot0w9mb.fsf@wallaby.Stanford.EDU>
1997-11-23  5:54 ` "B " Lars Magne Ingebrigtsen
1997-11-23 13:29   ` Neil Crellin [this message]
1997-11-23 17:54     ` "G " Lars Magne Ingebrigtsen
1997-11-14 11:49 Neil Crellin

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=vb6pvnr7n83.fsf_-_@wallaby.Stanford.EDU \
    --to=neilc@stanford.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).