From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: Recognize mbox files? Date: Tue, 10 Feb 2009 08:36:28 +0100 Message-ID: Reply-To: ams@gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234251408 26728 80.91.229.12 (10 Feb 2009 07:36:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 07:36:48 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 10 08:38:02 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWnBw-0000Pe-LP for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 08:38:00 +0100 Original-Received: from localhost ([127.0.0.1]:53041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWnAd-00008k-41 for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 02:36:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWnAY-00008T-A8 for emacs-devel@gnu.org; Tue, 10 Feb 2009 02:36:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWnAW-00007a-3P for emacs-devel@gnu.org; Tue, 10 Feb 2009 02:36:33 -0500 Original-Received: from [199.232.76.173] (port=52453 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWnAV-00007N-Q5 for emacs-devel@gnu.org; Tue, 10 Feb 2009 02:36:31 -0500 Original-Received: from hq.kreditor.se ([213.136.42.58]:1932 helo=auxid.hq.kred) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWnAT-000682-Qw; Tue, 10 Feb 2009 02:36:30 -0500 Original-Received: by auxid.hq.kred (Postfix, from userid 118) id ED037137A7D4; Tue, 10 Feb 2009 08:36:28 +0100 (CET) Original-Received: from beryx.hq.kred (unknown [10.16.0.106]) by auxid.hq.kred (Postfix) with ESMTP id D19EE137A781; Tue, 10 Feb 2009 08:36:28 +0100 (CET) Original-Received: from ams by beryx.hq.kred with local (Exim 4.69) (envelope-from ) id 1LWnAS-0008E5-Hz; Tue, 10 Feb 2009 08:36:28 +0100 In-reply-to: message from Stefan Monnier on Mon, 09 Feb 2009 20:34:27 -0500 Original-References: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108931 Archived-At: OTOH, the format of that From line is somewhat free, so we could arrange to place some kind of cookie in it (maybe even "-*-rmail-*-" could fit). This sounds like a good solution as well. > What about assuming that rmail files always start witj "RMAIL" or > "XMAIL" (and ignore case-sensitivity)? Then RMAIL.foo would be a > RMAIL file, and xmail.123 would also be a rmail file. Yes, a naming convention seems easier. a ".mbox" extension seems like an obvious choice as well. I dislike this choice, we use the .mbox extention for spool files that are nott put into the normal mail spool. Having them open up using rmail, and consequently get modified wouldn't be good. > That would work for most normal cases. That way if you open > /com/mail/ams or some other mail spool file, RMAIL will not do > anything funny with it. It's important that if opened on a non-mbox file, Rmail shouldn't do anything bad (e.g. it shouldn't modify the file). I do not think that mbox files should be opened using rmail either, only files that have been explictly OKed by the user (modeline {X,R}MAIL naming scheme, ...).