🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #934

Re: Setting up gnus: read on local, store remote (but not on mailserver)

#934
From: W. Greenhouse
Date: Thu, 28 Feb 2013 17:30
63 lines
5024 bytes
Hi Martin,

supermiri123@gmail.com writes:

> OK, I've *almost* got it working.  I did the following via customize:
>
> (gnus-home-directory "/scpc:YYY@XXX.ZZ:~")
> (message-directory "/scpc:YYY@XXX.ZZ:~/Mail/")
> (gnus-secondary-select-methods (quote ((nnml "" (nnml-marks-is-evil t)))))
>
> This let me read my old mail which is stored with nnml.  I had to set
> nnml-marks-is-evil because otherwise tramp would encode and decode
> every .marks file, which was annoying.
>
> However, the above does not let me read the archived mail stored with
> nnfolder. For these, the path is explicitely in my .newsrc.eld file.
> I tried to do
>
> (setq gnus-message-archive-method
>       '(nnfolder "archive"
> 		 (nnfolder-directory   "/scpc:YYY@XXX.ZZ:~/Mail/archive")
> 		 (nnfolder-active-file "/scpc:YYY@XXX.ZZ:~/Mail/archive/active")
> 		 (nnfolder-get-new-mail nil)
> 		 (nnfolder-inhibit-expiry t)
> 		 (nnfolder-marks-is-evil t)))
>
> but this had no effect (I guess it will only affect newly created
> archive folders).

I would say (despite the warnings in the ~/.newsrc.eld file) that you can
safely delete the line in your ~/.newsrc.eld where the nnfolder group is
defined.  For me it is a (setq gnus-server-alist ...) cell.  The new
nnfolder hierarchy should be detected from your settings.

Also, you might want to make sure that those old archive folders aren't
present but inactive.  Enter A A to see your entire list of available
groups from all backends (including nnfolder).  You might want to do
that to check before you try my idea above.

> In fact, I'd rather have no explicit paths in .newsrc.eld at all,
> because I do want to be able to use gnus by just taking the .emacs
> with me.
>
> Any ideas?

The mail-type backends including nnml and nnmaildir are *reasonably*
portable in that the NOV and marks are always included within the folder
itself, so that's all you really need to back up when changing systems.
But you can't eliminate .newsrc.eld completely, AFAIK, as it holds both
your group subscriptions and your marks for news-type backends
(including some mail systems that Gnus implements in a net-news-esque
way, like nnimap).  One idea you might think about is that all Gnus
directory variables inherit the `gnus-home-directory' variables, and
most backends inherit `gnus-directory'.  By setting these, you could
just move everything to the rsync/scpc address and hopefully everything
would just work.

I'm excited to here that remote nnml is mostly workable, though. :)  Is
the performance acceptable?

--
Regards,
WGG
Technical Details
Message-ID: <mailman.21126.1362072654.855.info-gnus-english@gnu.org>
Path: arc1-ca.pugleaf.net!jm3ni25254pbb.0!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
References: <5896e2dc-a264-4ea7-b250-9e95cfaf01a2@googlegroups.com> <mailman.20803.1361804622.855.info-gnus-english@gnu.org> <0afcb7dc-9d2d-45cd-96a1-60ae6ae00bd5@googlegroups.com> <mailman.20819.1361821041.855.info-gnus-english@gnu.org> <e8b45510-04a0-4830-9f19-eecec1c21f9a@googlegroups.com> <mailman.20848.1361833630.855.info-gnus-english@gnu.org> <857b9155-899d-4161-878b-c653877457b4@googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1016f0,9921057dd4acc00c
X-Google-NewGroupId: yes
X-Google-Attributes: gid99bd902dcd,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.66.155.41 with SMTP id vt9mr2046285pab.11.1362072655595;
        Thu, 28 Feb 2013 09:30:55 -0800 (PST)
Path: arc1-ca.pugleaf.net!jm3ni25254pbb.0!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: wgreenhouse@riseup.net (W. Greenhouse)
Newsgroups: gnu.emacs.gnus
Subject: Re: Setting up gnus: read on local,
 store remote (but not on mailserver)
Date: Thu, 28 Feb 2013 17:30:04 +0000
Lines: 65
Approved: info-gnus-english@gnu.org
Message-ID: <mailman.21126.1362072654.855.info-gnus-english@gnu.org>
References: <5896e2dc-a264-4ea7-b250-9e95cfaf01a2@googlegroups.com>
 <mailman.20803.1361804622.855.info-gnus-english@gnu.org>
 <0afcb7dc-9d2d-45cd-96a1-60ae6ae00bd5@googlegroups.com>
 <mailman.20819.1361821041.855.info-gnus-english@gnu.org>
 <e8b45510-04a0-4830-9f19-eecec1c21f9a@googlegroups.com>
 <mailman.20848.1361833630.855.info-gnus-english@gnu.org>
 <857b9155-899d-4161-878b-c653877457b4@googlegroups.com>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1362072655 31602 208.118.235.17 (28 Feb 2013 17:30:55 GMT)
X-Complaints-To: action@cs.stanford.edu
To: info-gnus-english@gnu.org
Envelope-to: info-gnus-english@gnu.org
X-Injected-Via-Gmane: http://gmane.org/
X-Gmane-NNTP-Posting-Host: assk.torservers.net
X-Archive: encrypt
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock: sha1:pQEkvyuRKr1EdcFMhdYyHR6TGUU=
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 80.91.229.3
X-BeenThere: info-gnus-english@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Announcements and discussions for GNUS,
 the GNU Emacs Usenet newsreader \(in English\)"
 <info-gnus-english.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/info-gnus-english>
List-Post: <mailto:info-gnus-english@gnu.org>
List-Help: <mailto:info-gnus-english-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/info-gnus-english>,
 <mailto:info-gnus-english-request@gnu.org?subject=subscribe>
Content-Type: text/plain