From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Rmail changes for Emacs 22 Date: Wed, 23 Oct 2002 17:13:58 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200210230813.RAA16342@etlken.m17n.org> References: <200210201940.g9KJeqW12529@rum.cs.yale.edu> <200210221432.g9MEWHa22491@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035360936 26770 80.91.224.249 (23 Oct 2002 08:15:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 08:15:36 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, monnier+gnu/emacs@rum.cs.yale.edu, eliz@is.elta.co.il, emacs-devel@gnu.org, pmr@pajato.com Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184Gfu-0006xT-00 for ; Wed, 23 Oct 2002 10:15:34 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 184GhV-0000Vj-00 for ; Wed, 23 Oct 2002 10:17:14 +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 184GfZ-0003xI-00; Wed, 23 Oct 2002 04:15:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184GeV-0002E6-00 for emacs-devel@gnu.org; Wed, 23 Oct 2002 04:14:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184GeT-0002Dv-00 for emacs-devel@gnu.org; Wed, 23 Oct 2002 04:14:06 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184GeT-0002Bv-00; Wed, 23 Oct 2002 04:14:05 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g9N8Dxk13415; Wed, 23 Oct 2002 17:13:59 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g9N8DwR09537; Wed, 23 Oct 2002 17:13:58 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id RAA16342; Wed, 23 Oct 2002 17:13:58 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Wed, 23 Oct 2002 03:12:13 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:8680 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8680 In article , Richard Stallman writes: > I said it should never *en*code. Obviously, it will have to decode > somewhere on the way between the mbox file and the display. > The question at hand is when and how to do the decoding. I have not yet thought of it deeply, but it seems that we have these options. (1) A simple way: Decode only when we need the contents of a message (e.g. for displaying or searching). This may be slow on searching all messages repeatedly. Morioka-san's rmail-mime package is implemented by this way. Actually, the current rmail code already contains necessary code to implement it easily (see rmail-XXX-mime-YYY-function). (2) Another simple but memory consuming way: Have a parallel decoded buffer that contains all messaages decoded. This may cause a memory shortage if RMAIL file is large, (3) Not simple but efficient way: Have a parallel decoded buffer but make it grow on demand. (4) More efficient way: Same as (3), but make rmail-backend not to keep the original RMAIL file in a buffer. It read the file once, scan it and keep file positions of all messages, then kill the buffer. Later, on request, rmail-backend reads portion of the RMAIL file one by one. --- Ken'ichi HANDA handa@m17n.org