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: Mon, 09 Feb 2009 19:38:24 +0100 Message-ID: Reply-To: ams@gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234204780 27945 80.91.229.12 (9 Feb 2009 18:39:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2009 18:39:40 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 19:40:53 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 1LWb3r-0002dc-Ia for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 19:40:51 +0100 Original-Received: from localhost ([127.0.0.1]:48246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWb2Y-0007h8-5U for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 13:39:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWb1x-0006wP-53 for emacs-devel@gnu.org; Mon, 09 Feb 2009 13:38:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWb1v-0006u6-Fl for emacs-devel@gnu.org; Mon, 09 Feb 2009 13:38:52 -0500 Original-Received: from [199.232.76.173] (port=38101 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWb1v-0006tr-BC for emacs-devel@gnu.org; Mon, 09 Feb 2009 13:38:51 -0500 Original-Received: from hq.kreditor.se ([213.136.42.58]:2299 helo=auxid.hq.kred) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWb1r-0000As-Iu; Mon, 09 Feb 2009 13:38:47 -0500 Original-Received: by auxid.hq.kred (Postfix, from userid 118) id 5F65E137A770; Mon, 9 Feb 2009 19:38:45 +0100 (CET) Original-Received: from beryx.hq.kred (unknown [10.17.100.141]) by auxid.hq.kred (Postfix) with ESMTP id 4F67B137A753; Mon, 9 Feb 2009 19:38:25 +0100 (CET) Original-Received: from ams by beryx.hq.kred with local (Exim 4.69) (envelope-from ) id 1LWb1U-0005VB-Mw; Mon, 09 Feb 2009 19:38:24 +0100 In-reply-to: message from Chong Yidong on Mon, 09 Feb 2009 13:17:30 -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:108897 Archived-At: > Is it reliable enough to recognize mbox files that we could visit > them automatically in Rmail mode? I don't think so. Mbox files are lines that begin with "From ", separated by arbitrary data. There's not enough information to autodetect them. 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. 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.