From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: Recognize mbox files? Date: Mon, 09 Feb 2009 22:26:37 +0100 Message-ID: <87y6wfcnea.fsf@marauder.physik.uni-ulm.de> References: <878wofpj9h.fsf@cyd.mit.edu> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234214832 2209 80.91.229.12 (9 Feb 2009 21:27:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2009 21:27:12 +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 22:28:26 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 1LWdfx-0006NH-Rs for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 22:28:25 +0100 Original-Received: from localhost ([127.0.0.1]:53614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWdee-0000JW-2H for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 16:27:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWdeX-0000In-6L for emacs-devel@gnu.org; Mon, 09 Feb 2009 16:26:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWdeV-0000Hw-B0 for emacs-devel@gnu.org; Mon, 09 Feb 2009 16:26:52 -0500 Original-Received: from [199.232.76.173] (port=56479 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWdeV-0000Ht-5C for emacs-devel@gnu.org; Mon, 09 Feb 2009 16:26:51 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]:36387) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWdeS-0005st-8C; Mon, 09 Feb 2009 16:26:48 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n19LQf4L000864; Mon, 9 Feb 2009 22:26:41 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id DD4981361C; Mon, 9 Feb 2009 22:26:40 +0100 (CET) X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s, rms@gnu.org, emacs-devel@gnu.org In-Reply-To: <878wofpj9h.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon, 09 Feb 2009 13:17:30 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-debian-Metrics: poseidon 1169; Body=3 Fuz1=3 Fuz2=3 X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:108911 Archived-At: On Mon, Feb 09 2009, Chong Yidong wrote: > Richard M Stallman writes: > >> Is it reliable enough to recognize mbox files >> that we could visit them automatically in Rmail mode? Please don't. > 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. More important, rmail-mode seems to modify the file. Dunno if this is a bug or a feature of rmail-mode. $ cat [...]/Incoming* > mbox-test.orig=20 $ cp -p mbox-test.orig mbox-test.rmail $ emacs -Q mbox-test.rmail -f rmail-mode # C-x C-s C-x C-c $ diff -U1 mbox-test.orig mbox-test.rmail > mbox-test.diff ,----[ mbox-test.diff ] | --- mbox-test.orig 2009-02-09 22:13:31.000000000 +0100 | +++ mbox-test.rmail 2009-02-09 22:14:16.000000000 +0100 | @@ -1001,12 +1001,12 @@ | [...] | -> Viele Gr=C3=BC=C3=9Fe | +> Viele Gr=C3=83=C2=BC=C3=83=C5=B8e | >=20 | [...] | @@ -4434,2 +4434,3 @@ | X-Loop: reiner.steib@... | +X-RMAIL-ATTRIBUTES: -------- `---- (As I wont use Rmail, I don't care much, but ...) it seems that Rmail recoded iso-8859-1 encoded messages to utf-8 without adjusting the Content-Type header so the resulting mbox file is no longer correct. (Modifying the Content-Type would also be a no-no IMHO.) Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/