Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse)
To: info-gnus-english-mXXj517/zsQ@public.gmane.org
Subject: Re: Setting up gnus: read on local, store remote (but not on mailserver)
Date: Mon, 25 Feb 2013 19:36:38 +0000	[thread overview]
Message-ID: <87zjysxk1l.fsf@riseup.net> (raw)
In-Reply-To: <0afcb7dc-9d2d-45cd-96a1-60ae6ae00bd5@googlegroups.com>

Hi Martin,

supermiri123-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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-3I8OyKyBCfCmcwpypvFeBw@public.gmane.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

  reply	other threads:[~2013-02-25 19:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 13:24 supermiri123
2013-02-25 15:03 ` W. Greenhouse
     [not found] ` <mailman.20803.1361804622.855.info-gnus-english@gnu.org>
2013-02-25 18:04   ` supermiri123
2013-02-25 19:36     ` W. Greenhouse [this message]
     [not found]     ` <mailman.20819.1361821041.855.info-gnus-english@gnu.org>
2013-02-25 20:34       ` supermiri123
2013-02-25 23:06         ` W. Greenhouse
     [not found]         ` <mailman.20848.1361833630.855.info-gnus-english@gnu.org>
2013-02-27  7:56           ` supermiri123
2013-02-27  9:17             ` supermiri123
2013-02-28 17:30             ` W. Greenhouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjysxk1l.fsf@riseup.net \
    --to=wgreenhouse-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
    --cc=info-gnus-english-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).