From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80381 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: how do I subscribe to a group as a string from code? Date: Thu, 20 Oct 2011 22:11:40 +0200 Message-ID: <87mxcvjudf.fsf@thinkpad.tsdh.de> References: <87mxcv3fu2.fsf@lifelogs.com> <87r527jxbt.fsf@thinkpad.tsdh.de> <87y5wf1mz7.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319141555 4735 80.91.229.12 (20 Oct 2011 20:12:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2011 20:12:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28669@lists.math.uh.edu Thu Oct 20 22:12:31 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGyyZ-0007dQ-S4 for ding-account@gmane.org; Thu, 20 Oct 2011 22:12:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RGyxw-0004ha-7H; Thu, 20 Oct 2011 15:11:48 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RGyxu-0004hL-NP for ding@lists.math.uh.edu; Thu, 20 Oct 2011 15:11:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RGyxt-0000Yy-5N for ding@lists.math.uh.edu; Thu, 20 Oct 2011 15:11:46 -0500 Original-Received: from out5.smtp.messagingengine.com ([66.111.4.29]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RGyxr-0004Is-H4 for ding@gnus.org; Thu, 20 Oct 2011 22:11:43 +0200 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D59A42098E for ; Thu, 20 Oct 2011 16:11:42 -0400 (EDT) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 20 Oct 2011 16:11:42 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=THGYMPpN29MUGIL5rmrjT2OydVM=; b=tVBHGArZwrs6yHSKkTruP/wd/dlM r4o3WiXC6XtC49TUIr3/C6uzEIDfnDF4WgPC3ro0vaUTVWGIpgVYPCWyWx4QsL3J tSUF+NA5mf+b0/1+s43FvR624p64V9WwvyqQpsgohuPy58HYbkGy0lgxMc34Vj1+ xvVhZw8P6UtBLlU= X-Sasl-enc: v7QhLoIm/8QjwbJ8oRsY/4c4UdG0rbNXcvGmdSdO5/dS 1319141502 Original-Received: from thinkpad.tsdh.de (91-67-169-145-dynip.superkabel.de [91.67.169.145]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2C443483408 for ; Thu, 20 Oct 2011 16:11:41 -0400 (EDT) In-Reply-To: <87y5wf1mz7.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 20 Oct 2011 14:28:44 -0500") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80381 Archived-At: Ted Zlatanov writes: > TH> I've just tried > > TH> (gnus-subscribe-newsgroup "nntp+Gmane:gwene.org.slashdot") > > TH> and that did the trick. Do I understand your question wrongly, or did > TH> you miss the forest for the trees? > > Whoa, how the .... does that work? I don't have a "Gmane" server > defined in my backends, but it subscribed to it and I can look at that > group on Gmane. This also works in my original case, where I have > that foreign server defined: > > (gnus-subscribe-newsgroup "nntp+news.gwene.org:gwene.org.slashdot") > > so I guess it solves my problem, but I'm really curious why the > "Gmane" server worked without a definition and I am not sure if I can > rely on this behavior for general sync. Oh, I chose Gmane, cause that's the name of the select method with nntp-server news.gmane.org here. Not sure why that also works for you without such a select method. I wouldn't assume that in the general case. However, I'm pretty sure that'll always work if you feed in a valid select method name. Can't you just iterate the select methods comparing the server addresses for picking the right one? Well, ok, it's possible to have several select methods for the same server, say, different imap accounts. In that case, you are probably lost. Bye, Tassilo -- Sent from my Emacs