From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9130 Path: news.gmane.org!not-for-mail From: "Ted Baltz" Newsgroups: gmane.emacs.gnus.user Subject: Re: multiple nnfolder instances Date: Fri, 08 Jun 2007 12:11:31 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181331618 32306 80.91.229.12 (8 Jun 2007 19:40:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2007 19:40:18 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Jun 08 21:40:17 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HwkJk-0007Nw-Ml for gegu-info-gnus-english@m.gmane.org; Fri, 08 Jun 2007 21:40:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwkJk-0000o6-77 for gegu-info-gnus-english@m.gmane.org; Fri, 08 Jun 2007 15:40:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 08 Jun 2007 14:11:31 -0500 Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:Owqk2bNXjdNC+b99DT40QpS6A/U= Original-Lines: 34 Original-NNTP-Posting-Host: 24.6.89.139 Original-X-Trace: sv3-tP0xx13RyQfufPwva5JPGkyDlfs3Q5PMkrV1uPh+ebuHx+XqPA/6qFko98sfQ/mm1mEP6SnHzChTetv!rhGfh5m17YKs+VIiVmoIJom6TX7k+c8uUxZmxQ56BLjcz2qWp14Ccp4E62OMjM28j/dC7dgb6af7!Fik= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79313 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9130 Archived-At: >> Is there a way (with gnus-secondary-select-methods perhaps) to have >> multiple instances of nnfolder? I would like to be able to read two >> accounts on the same machine. What I have in mind is copying the >> mailboxes, .nov, .mrk and active file from one machine onto another. >> I'd then have ~/Mail and ~/Mail-external directories, each having mail >> files and active files. I'd like to be able to simply rsync into >> ~/Mail-external. Mail actually sent to this account would end up in >> ~/Mail. > > Something along this lines should do the trick... > > (add-to-list 'gnus-secondary-select-methods > '(nnfolder "mail-external" > (nnfolder-directory "~/Mail-external") > (nnfolder-newsgroups-file "~/Mail-external/newsgroups") > (nnfolder-get-new-mail nil) > (nnfolder-active-file "~/Mail-external/active")) > t) > > See (info "(gnus)Mail Folders") for information about these and more > server settings. Thanks, this did the trick. I had tried something similar earlier, but I imagine as is typical for me with lisp I was using {too much,not enough} {quoting,parentheses}. I never did figure out why nnfolder-generate-active-file wasn't working with emacs-22, but this is better solution anyway. Thanks very much, Ted -- eabaltz at sophont dot net