Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Sherilyn <sherilyn@suespammers.org>
Subject: Movemail, nnmail (was mutt vs gnus)
Date: 11 Jul 2002 22:37:55 +0000	[thread overview]
Message-ID: <87hej5riv0.fsf_-_@happy.sherilyn.org.uk> (raw)
In-Reply-To: <iluofdfv01a.fsf@latte.josefsson.org>

Simon Josefsson <jas@extundo.com> writes:

> Erwan David <erwan@rail.eu.org> writes:
> 
> > Simon Josefsson <jas@extundo.com> writes:
> >
> >> Erwan David <erwan@rail.eu.org> writes:
> >>
> >>>> Depending on the other MUA you're planning to use, you can choose a
> >>>> suitable Gnus backend. AFAIK, nnmaildir should even allow concurrent
> >>>> use of Gnus and other MUAs. Or use nnimap. nnfolder stores mail in
> >>>> standard Unix mailbox format, so you can read them with most Unix MUAs
> >>>> (but do _not_ write to them behind Gnus' back). 
> >>>
> >>>   So I cannot use /var/mail/$user
> >>
> >> Doesn't nnmbox:/var/mail/$user work?  Or nndoc:/var/mail/$user?  Some
> >> systems have maildirs in /var/mail, then nnmaildir:/var/mail/$user
> >> should work.
> >
> > No, since mail arrives in it, even when reading it. And I want to
> > *work* with it, ie. delete some messages, etc, which nndoc cannot do.
> 
> Ok.  If your system uses maildir it would work though, I think.
> Having several applications (possibly on different hosts) working on
> the same file seems to be asking for trouble.
> 
> Are POSIX file lock operations available in elisp?  I guess it would
> be possible to make this work.

The following is based on a brief scan of the emacs 20.7 source tree.

The way MUAs deal with this is generally to use a specialised movemail
program, which is supposed to deal with spool file locking properly.
Emacs comes with its own movemail, which is used, according to the
emacs 20.7 Debianized sourcei I just downloaded, by lisp/mail/rmail.el and
lisp/gnus/nnmail.el.  This is configured for the target system's locking
conventions and setuid/setgid requirements during emacs configuration
and installation.  pop3.el provides a POP-based alternative, but you'd
need to run a POP3 daemon to use that method.

When you do a nnmail-get-new-mail in Gnus, nnmail.el uses movemail
(you can define an external one if you don't like emacs' own) to move
email from the mail spool to a 'crashbox' from which the mail split,
if there is one, can be performed.

nnbabyl.el, nnfolder.el, nnmbox.el, nnmh.el and nnml.el all use the
nnmail-get-new-mail function.

See lib-src/movemail.c and the abovementioned lisp code.
-- 
Sherilyn
http://www.greedycorporate.com/minority-report/
Free reliable text-only posting news accounts: http://news.cis.dfn.de/


  parent reply	other threads:[~2002-07-11 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87d6txjz6j.fsf@westminster.societyofno.com>
     [not found] ` <878z4ke57g.fsf@happy.sherilyn.org.uk>
     [not found]   ` <877kk4xhe3.fsf@bretagne.rail.eu.org>
2002-07-10  7:58     ` mutt vs gnus Reiner Steib
     [not found]       ` <85y9cjkd3s.fsf@bretagne.rail.eu.org>
     [not found]         ` <ilubs9fv4sq.fsf@latte.josefsson.org>
2002-07-10 19:17           ` Erwan David
     [not found]             ` <iluofdfv01a.fsf@latte.josefsson.org>
2002-07-11 22:37               ` Sherilyn [this message]
     [not found]               ` <wc34rf6ot7u.fsf@eta.cis.ohio-state.edu>
2002-07-12  5:33                 ` Erwan David
     [not found]       ` <85lm8jkcrg.fsf@brehat.trusted-logic.fr>
     [not found]         ` <vafn0svriyv.fsf@lucy.cs.uni-dortmund.de>
2002-07-13 15:20           ` Erwan David
2002-07-13 17:04             ` Kai Großjohann
2002-07-13 17:15               ` Erwan David
     [not found]     ` <87vg7o3qx5.fsf@happy.sherilyn.org.uk>
2002-07-10  9:04       ` Sherilyn

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=87hej5riv0.fsf_-_@happy.sherilyn.org.uk \
    --to=sherilyn@suespammers.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).