From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/757 Path: news.gmane.org!not-for-mail From: Sherilyn Newsgroups: gmane.emacs.gnus.user Subject: Movemail, nnmail (was mutt vs gnus) Date: 11 Jul 2002 22:37:55 +0000 Message-ID: <87hej5riv0.fsf_-_@happy.sherilyn.org.uk> References: <87d6txjz6j.fsf@westminster.societyofno.com> <878z4ke57g.fsf@happy.sherilyn.org.uk> <877kk4xhe3.fsf@bretagne.rail.eu.org> <85y9cjkd3s.fsf@bretagne.rail.eu.org> <87n0szcs09.fsf@bretagne.rail.eu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667682 8284 80.91.229.2 (31 Jan 2006 00:34:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:34:42 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:28:04 2006 Original-Path: quimby.gnus.org!lackawana.kippona.com!stargate.gts.cz!fu-berlin.de!uni-berlin.de!public1-walt3-3-cust30.walt.broadband.ntl.COM!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: public1-walt3-3-cust30.walt.broadband.ntl.com (80.1.104.30) Original-X-Trace: fu-berlin.de 1026427075 23950492 80.1.104.30 (16 [7050]) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:897 Original-Lines: 54 X-Gnus-Article-Number: 897 Tue Jan 17 17:28:04 2006 Xref: news.gmane.org gmane.emacs.gnus.user:757 Archived-At: Simon Josefsson writes: > Erwan David writes: > > > Simon Josefsson writes: > > > >> Erwan David 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/