all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William G Gardella <wgg2@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs mailreader that doesn't move the spool
Date: Fri, 25 Oct 2013 06:22:32 +0000	[thread overview]
Message-ID: <87zjpx7tuf.fsf@motoko.kusanagi> (raw)
In-Reply-To: 52684778$0$53732$c3e8da3$14a0410e@news.astraweb.com

Hikaru Ichijyo <ichijyo@macross.sdf.jp> writes:

[...]

> Yes, I already have an IMAP daemon setup for users, so I could use it 
> locally also.
>
> Well...I suppose I could consider it a wishlist request for VM and/or 
> Gnus then:  It would be nice if they could do in-place file locking of 
> the system mail spool, like Mutt and Alpine do.  Maybe in a future 
> version?  :)

If RMAIL can do this with a configuration variable, Gnus probably can as
well, at least from a technical standpoint.

For what it's worth, I use Gnus with its "nnmaildir" message store,
notmuch <http://notmuchmail.org/>, and notmuch-web
<https://bitbucket.org/wuzzeb/notmuch-web>, together with a
~/.procmailrc that delivers my incoming mail to a series of Maildirs in
$HOME.  The main advantages of this setup from my standpoint are that
filtering of messages into some basic categories is automatic before I
even look at my mail, and that the Maildir format itself does not
require locks; several MUAs can be refiling, marking, and adding new
messages to the Maildir at the same time without stepping on each
other's toes.  This configuration does not fulfil your requirement of
not moving the mail, but it may fulfil your requirement of sharing, as
Maildir is a lingua franca among many MUAs, mail indexing programs, and
IMAP servers these days.

The (for now very simple) ~/.procmailrc is as follows:

--8<---------------cut here---------------start------------->8---
:0 c
* ^X-Spam-Status: Yes
Maildir/spam/
:0 Ec
* ^List-Unsubscribe:.*
Maildir/lists/
:0 Ec
Maildir/mail/
:0
| notmuch new
--8<---------------cut here---------------end--------------->8---

First, spam is filtered out into its own sub-maildir for possible manual
checking (not shown: the SpamAssassin + Pyzor configuration that adds
the spam-related headers).  Second, messages with a List-Unsubscribe
header--bulk mailings--go in the "lists" maildir.  Anything else is
mail.  Finally, the notmuch indexer is run to incorporate the new mail
(pedantically speaking, this recipe runs notmuch with the new messages as
arguments, but notmuch ignores its stdin).

Of course, this setup might or might not make sense for your
requirements.  You may have some reason to prefer mbox, but consider
also that many contemporary MTAs such as Postfix are happy to deliver
directly to a maildir in $HOME, possibly without the help of an MDA
helper like procmail.

--
Best,
WGG




  reply	other threads:[~2013-10-25  6:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-22 19:05 Emacs mailreader that doesn't move the spool Hikaru Ichijyo
2013-10-22 20:17 ` Gregory Benjamin
2013-10-22 22:07   ` Jude DaShiell
2013-10-22 21:51 ` Damien Wyart
2013-10-23  5:33   ` Damien Wyart
2013-10-23 19:40   ` Joost Kremers
2013-10-22 22:15 ` Emanuel Berg
2013-10-23 19:19 ` Jonathan Groll
     [not found] ` <mailman.4561.1382555797.10748.help-gnu-emacs@gnu.org>
2013-10-23 22:02   ` Hikaru Ichijyo
2013-10-25  6:22     ` William G Gardella [this message]
2013-10-25  6:40       ` William G Gardella

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=87zjpx7tuf.fsf@motoko.kusanagi \
    --to=wgg2@member.fsf.org \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.