From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23978 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Can't select group created by copying Date: 07 Jul 1999 21:15:34 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87r9mkvjg9.fsf@parus.itea.ntnu.no> <87vhbwlg95.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 1035161611 6142 80.91.224.250 (21 Oct 2002 00:53:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:53:31 +0000 (UTC) Cc: ding@gnus.org 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 PAA22698 for ; Wed, 7 Jul 1999 15:19:42 -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 OAB03351; Wed, 7 Jul 1999 14:16:10 -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 14:16:18 -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 OAA12740 for ; Wed, 7 Jul 1999 14:16:04 -0500 (CDT) Original-Received: from puh.extundo.com (dialup163-4-31.swipnet.se [130.244.163.223]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA22593 for ; Wed, 7 Jul 1999 15:15:02 -0400 (EDT) Original-Received: (from jas@localhost) by puh.extundo.com (8.8.7/8.8.7) id VAA00488; Wed, 7 Jul 1999 21:15:36 +0200 Original-To: Jon K Hellan In-Reply-To: Jon K Hellan's message of "07 Jul 1999 15:51:50 +0200" Original-Lines: 45 User-Agent: Gnus/5.070091 (Pterodactyl Gnus v0.91) Emacs/20.3.10 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23978 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23978 Jon K Hellan writes: > 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. Ah, yes. Have a look at the select method on the newly created group (`G E' in the group buffer). My bet it says (nnimap "foo") when it should've been either "nnimap:foo" or (nnimap "foo" (nnimap-address ...)). Either way, does this patch help? 1999-07-07 Simon Josefsson * gnus-sum.el (gnus-summary-move-article): Better method search. --- gnus-sum.el.DIST Wed Jul 7 21:12:50 1999 +++ gnus-sum.el Wed Jul 7 21:13:22 1999 @@ -7200,7 +7200,7 @@ articles prefix)) (set (intern (format "gnus-current-%s-group" action)) to-newsgroup)) (setq to-method (or select-method - (gnus-group-name-to-method to-newsgroup))) + (gnus-find-method-for-group to-newsgroup))) ;; Check the method we are to move this article to... (unless (gnus-check-backend-function 'request-accept-article (car to-method))