From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23966 Path: main.gmane.org!not-for-mail From: Jon K Hellan Newsgroups: gmane.emacs.gnus.general Subject: Re: Can't select group created by copying Date: 07 Jul 1999 15:51:50 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <87vhbwlg95.fsf@parus.itea.ntnu.no> References: <87r9mkvjg9.fsf@parus.itea.ntnu.no> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161602 6069 80.91.224.250 (21 Oct 2002 00:53:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:53:22 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA14820 for ; Wed, 7 Jul 1999 09:57:46 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB29786; Wed, 7 Jul 1999 08:54:20 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 07 Jul 1999 08:54:50 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id IAA09242 for ; Wed, 7 Jul 1999 08:54:40 -0500 (CDT) Original-Received: from newman.itea.ntnu.no (newman.itea.ntnu.no [129.241.18.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA14738 for ; Wed, 7 Jul 1999 09:53:39 -0400 (EDT) Original-Received: from parus.itea.ntnu.no (isdn-b83.itea.ntnu.no [129.241.54.83]) by newman.itea.ntnu.no (8.9.1/8.9.1) with ESMTP id OAA00350 for ; Wed, 7 Jul 1999 14:53:38 +0100 (WET DST) Original-Received: (from jk@localhost) by parus.itea.ntnu.no (8.9.3/8.9.3/Debian/GNU) id PAA03329; Wed, 7 Jul 1999 15:51:50 +0200 Original-To: ding@gnus.org In-Reply-To: Jon K Hellan's message of "Wed, 07 Jul 1999 10:35:39 GMT" Original-Lines: 52 User-Agent: Gnus/5.070092 (Pterodactyl Gnus v0.92) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23966 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23966 Jon K Hellan writes: > Here's a problem I found. I am not sure how to deal with it. > > When I create a new group by copying a message into it, I can't > enter that group until gnus has been restarted. > > This happens with the nnimap backend, but from my meagre understanding > of the code, it doesn't look like a backend issue. > > I use B c - gnus-summary-copy-article, and enter the name of a group > that does not exist. When prompted, I confirm that I want to create > it. > > gnus-read-move-group-name creates the group, and activates it. Of > course, it is empty, and this is what (gnus-active ) will > report from now on. > > When I subscribe the group in the Group buffer, and try to select it, the > active info is never updated. So gnus believes that it is still empty, > and refuses to enter it. "Can't select group". > > So - when should the active info have been updated? > > Jon Have investigated further. There is code to update the group that has been moved to in gnus-summary-move-article, gnus-sum.el, around l 7280. (let* ((pto-group (gnus-group-prefixed-name (car art-group) to-method)) ==> (entry (gnus-gethash pto-group gnus-newsrc-hashtb)) (info (nth 2 entry)) (to-group (gnus-info-group info)) to-marks) ;; Update the group that has been moved to. (when (and info (memq action '(move copy))) (unless (member to-group to-groups) (push to-group to-groups)) But entry is nil for the newly created group, so do not find a to-group. Both nnfolder and nnimap do this. Jon