🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.gnus
Article #925

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

#925
From: W. Greenhouse
Date: Mon, 25 Feb 2013 19:36
70 lines
5478 bytes
Hi Martin,

supermiri123@gmail.com writes:

> Thanks for the quick response!
>
>> A maildir might be a good choice.  The `nnmaildir' backend (info "(gnus)
>> Maildir") can use a remote filesystem, e.g.
>> 
>> (setq gnus-select-method
>>       '(nnmaildir "mail"
>>         (directory "/rsyncc:user@remotehost.org:/path/to/maildir/")
>>         (get-new-mail t)))
>> 
>> The above would use Gnus to incorporate mail using whatever methods you
>> picked in `mail-sources', and store them in a remote maildir accessed
>> with rsync (you can use any TRAMP filename, e.g. ssh:, scpc:, etc.).
>
> Reading this, it appears to me that I was confused about what
> gnus-select-method does :-) I now checked my .emacs and learn that I
> use the customized variable mail-sources to tell gnus where to get my
> mail from, gnus-select-method to tell gnus where to get my news from,
> and gnus-secondary-select-method to tell gnus where to store my mail.
> The last currently just reads ((nnml "")).

Your usage is entirely sensible.  You can use either a mail or a news
backend as select-method or as one of the secondary select methods.  So
that was just an editorial decision on my part. :) I have sometimes used
Gnus in a mail-only configuration.

> In the documentation I see that nnml allows a parameter
> nnml-directory.  Could I set this to a tramp path also?  This would
> have the advantage that I do not have to respool my old mail.  Also,
> the doc says that nnmaildir uses many many inodes (while nnml only
> uses many).  Should I worry about this?
>
> Is there a particular reason to prefer nnmaildir over nnml in my
> setting?  (I was happy with nnml for some 10 years now, but of course,
> the setting is slightly different now.)

To answer your last question first: If only one Emacs machine will ever
be the client in this setup, and you are not using an external utility
like offlineimap or fetchmail directly on the mailbox, you could get
away with using nnml over TRAMP.  The advantage of nnmaildir is that,
unlike MH-style mailboxes like nnml, the maildir layout is designed to
be suitable for non-locking use, i.e. reading mail even as another
program is putting stuff into the inbox.  Therefore it's an excellent
choice for a mailbox hosted on a central server for multiple clients to
use.

Re: the inodes question, it depends on the filesystem on your university
server and how likely your sysadmin there is to complain :) You can
check out how many inodes you currently have available by using `df -i'.
I think it is not as much of a concern for many modern systems as it was
when the Gnus manual was first written (much like the reference to
dialup modems in (info "(gnus) Gnus Unplugged")).  nnmaildir uses up an
inode for each message and also has three NOV files for each mailbox
(one each for the new/ cur/ and tmp/ subdirs of the mailbox), so I guess
that accounts for the reference to it using slightly more inodes.

>
> Many many thanks,
>
> Martin

Hope this helps.

--
Regards,
WGG
Technical Details
Message-ID: <mailman.20819.1361821041.855.info-gnus-english@gnu.org>
Path: arc1-ca.pugleaf.net!g1ni43059wig.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 99bd902dcd,9921057dd4acc00c
X-Google-Attributes: gid99bd902dcd,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.180.89.133 with SMTP id bo5mr738785wib.6.1362278618293;
        Sat, 02 Mar 2013 18:43:38 -0800 (PST)
Path: arc1-ca.pugleaf.net!g1ni43059wig.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsreader4.netcologne.de!news.netcologne.de!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: Mon, 25 Feb 2013 19:36:38 +0000
Lines: 72
Approved: info-gnus-english@gnu.org
Message-ID: <mailman.20819.1361821041.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>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1361821042 28489 208.118.235.17 (25 Feb 2013 19:37:22 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: 199.48.147.39
X-Archive: encrypt
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock: sha1:vEAQwb9ttUkYA976h1tVsebfehQ=
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