From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Michael Reilly Newsgroups: gmane.emacs.devel Subject: Re: Rmail changes for Emacs 22 Date: Sat, 19 Oct 2002 00:25:15 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210190425.g9J4PFfN007634@copa.pajato.com> References: <200210160719.QAA05776@etlken.m17n.org> Reply-To: pmr@pajato.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035020656 12594 80.91.224.249 (19 Oct 2002 09:44:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 09:44:16 +0000 (UTC) Cc: handa@m17n.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182q9W-0003H0-00 for ; Sat, 19 Oct 2002 11:44:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 182r2N-0008SP-00 for ; Sat, 19 Oct 2002 12:40:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182q3p-0000mQ-00; Sat, 19 Oct 2002 05:38:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182nw1-0004fN-00 for emacs-devel@gnu.org; Sat, 19 Oct 2002 03:22:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182nvt-0004c3-00 for emacs-devel@gnu.org; Sat, 19 Oct 2002 03:22:03 -0400 Original-Received: from copa.pajato.com ([209.113.133.197]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182lAq-0001oc-00; Sat, 19 Oct 2002 00:25:17 -0400 Original-Received: from copa.pajato.com (localhost.localdomain [127.0.0.1]) by copa.pajato.com (8.12.5/8.12.5) with ESMTP id g9J4PF6F007638; Sat, 19 Oct 2002 00:25:15 -0400 Original-Received: (from pmr@localhost) by copa.pajato.com (8.12.5/8.12.5/Submit) id g9J4PFfN007634; Sat, 19 Oct 2002 00:25:15 -0400 Original-To: rms@gnu.org Original-CC: eliz@is.elta.co.il, emacs-devel@gnu.org In-reply-to: <200210160719.QAA05776@etlken.m17n.org> (message from Kenichi Handa on Wed, 16 Oct 2002 16:19:37 +0900 (JST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8580 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8580 > > Personally, I think emacs-mule is not a good idea in this case, since > > mbox is not Emacs-private format, so some other software should be able > > to read it. A good alternative would be to encode each message as what > > the charset= header says (and add/fix such a header if there is none, or > > if the one that's there lies). > > I agree with that approach. I think we can proceed the > modification of rmail in these steps. > > (1) Divide the current code into BABYL format handler > (babyl-backend) and rmail user-interface provider > (rmail-frontend). Babyl-backend reads a BABYL file > without any code conversion in an unibyte buffer, and > provides various functions (e.g. extract message > headers, extract a specific message header, extract a > message body, get new messages, etc). > > (2) Make mbox-backend that provides the same facilities as > babyl-backend. > > (3) Make rmail-frontend to use babyl-backend or mbox-backend > depending on users mail file. Rmail-frontend displays a > message in a different buffer (rmail-view-buffer) than > the original mail file buffer. Rmail-frontend utilizes > MIME handler to decode message headers and body. > > This way, we can easiy add more backends, for instance, > IMAP, per-message files (like MH or GNUS), etc. This is an excellent approach. I'm kicking myself for not seeing it when I added mbox support. I will get to it as quickly as I can. -pmr