From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54704 Path: main.gmane.org!not-for-mail From: "Steven E. Harris" Newsgroups: gmane.emacs.gnus.general Subject: (Yet another stab at) Sharing ~/.newsrc.eld among multiple machines Date: Thu, 06 Nov 2003 12:03:17 -0800 Organization: SEH Labs Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1068149123 19938 80.91.224.253 (6 Nov 2003 20:05:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 20:05:23 +0000 (UTC) Original-X-From: ding-owner+M3245@lists.math.uh.edu Thu Nov 06 21:05:21 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHqNc-0006AO-00 for ; Thu, 06 Nov 2003 21:05:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AHqNS-0004M3-00; Thu, 06 Nov 2003 14:05:10 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AHqNO-0004Ly-00 for ding@lists.math.uh.edu; Thu, 06 Nov 2003 14:05:06 -0600 Original-Received: from bos-gate2.raytheon.com (bos-gate2.raytheon.com [199.46.198.231]) by justine.libertine.org (Postfix) with ESMTP id 403863A005E for ; Thu, 6 Nov 2003 14:05:02 -0600 (CST) Original-Received: from ds02e00.directory.ray.com (ds02e00.directory.ray.com [147.25.130.245]) by bos-gate2.raytheon.com (8.12.10/8.12.10) with ESMTP id hA6K50hH023345 for ; Thu, 6 Nov 2003 15:05:01 -0500 (EST) Original-Received: from ds02e00.directory.ray.com (localhost [127.0.0.1]) by ds02e00.directory.ray.com (8.12.10/8.12.1) with ESMTP id hA6K4b9j027731 for ; Thu, 6 Nov 2003 20:04:59 GMT Original-Received: Received: from L75001820.sdo.us.ray.com ([192.27.58.82]) by ds02e00.directory.ray.com (8.12.10/8.12.9) with ESMTP id hA6K4Yx5027704 sender seharris@raytheon.com for ; Thu, 6 Nov 2003 20:04:35 GMT Original-Received: from sharr by L75001820.sdo.us.ray.com with local (Exim 4.24) id HNY51H-0004TW-NF for ding@gnus.org; Thu, 06 Nov 2003 12:03:17 -0800 Original-To: ding@gnus.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, cygwin32) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54704 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54704 For the first time in a long time, I can now read the same news server from home and work. That means that I should be able to rsync .newsrc.eld and a bunch of score files around so that I can, say, read mail and news at work, continue at home over the weekend, and pick up again at work with consistent state along the way. I should be able to, but the agent gets in the way. Along with a primary news server, I read IMAP from three different hosts. At home, I just connect to these hosts directly, optionally with STARTTLS. At work, though, I have to reach these servers through SSH port forwarding to get through our firewall. The "server names" are identical in each case; it's the connection details that differ.=B9 My long-time solution to this difference is to split my .gnus file into a shared .gnus and a local .gnus-local.el, the latter included by the former. Any changes to .gnus apply regardless of location. Site-specific details (such as my three nnimap secondary select methods) go into .gnus-local.el. Again, all of this would work fine, except for the agent. My three nnimap groups are agentized. This forces the full select method definition of each into .newsrc.eld in the gnus-agent-covered-methods variable. If I use Gnus all week at work and try to take my .newsrc.eld home for the weekend, my .gnus-local.el at home will conflict with the gnus-agent-covered-methods variable stored in .newsrc.eld. (The agent seems to use a deep comparison to see if a given select method is agentized; all select method parameters must match, rather than just the name.) I'll have to re-agentize these groups, and the gnus-agent-covered-methods variable will continue to grow in my .newsrc.eld file. Why can't we just store, say, "nnimap+speakeasy" and "nnimap+panix" in .newsrc.eld, rather than cramming the full duplicated select method definitions in there? As previous threads mentioned=B2, this duplication is dangerous, as the variables are also defined in the .gnus file. For my scenario, the duplication causes conflicts. I want to be able to refer to these servers by the minimal common name. They are going to be nnimap groups at home and work, and I'll call them "speakeasy" or "panix" regardless of where I am. Anything beyond that, though, becomes a site-specific detail. Has there been any progress since Gnus v5.10.2 that would help me overcome this conflict? If not, perhaps I can help make my Gnus dream come true. Footnotes:=20 =B9 ;; work (setq gnus-secondary-select-methods '((nnimap "panix" (nnimap-address "localhost") (nnimap-server-port 1430) (nnimap-list-pattern ("INBOX" "INBOX.*"))) ;; home (setq gnus-secondary-select-methods '((nnimap "panix" (nnimap-address "mail.panix.com") ;; Skip imtest and gsasl. (nnimap-stream starttls) (nnimap-list-pattern ("INBOX" "INBOX.*"))) =B2 http://groups.google.com/groups?threadm=3D87he5nzjnb.fsf%40goldfish.loc= al --=20 Steven E. Harris :: seh@panix.com