From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: RMAIL, MIME-related bug Date: 21 Oct 2003 08:38:16 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87u163up4n.fsf@mail.jurta.org> References: <200310121947.h9CJlhKH006102@oak.pohoyda.family> <874qy4vbg7.fsf@mail.jurta.org> <3F9471FB.4000609@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066715012 10209 80.91.224.253 (21 Oct 2003 05:43:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2003 05:43:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 21 07:43:30 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABpIo-0004fu-00 for ; Tue, 21 Oct 2003 07:43:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABpIo-0007OS-00 for ; Tue, 21 Oct 2003 07:43:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABpIF-00064c-WB for emacs-devel@quimby.gnus.org; Tue, 21 Oct 2003 01:42:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABpIA-00062Z-0z for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:42:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABpHd-0005r5-OL for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:42:48 -0400 Original-Received: from [64.246.52.232] (helo=ns5.tangramltd.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ABpHd-0005qJ-5n for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:42:17 -0400 Original-Received: from 80-235-32-90-dsl.mus.estpak.ee ([80.235.32.90] helo=mail.jurta.org) by ns5.tangramltd.com with esmtp (Exim 4.20) id 1ABpHa-0007VD-2Z for emacs-devel@gnu.org; Tue, 21 Oct 2003 08:42:14 +0300 Original-To: emacs-devel@gnu.org In-Reply-To: <3F9471FB.4000609@yahoo.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 31 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns5.tangramltd.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jurta.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17286 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17286 Kevin Rodgers writes: > Juri Linkov wrote: > > 2. Sometimes there is a need to make a bookmark to the message to be > > able to quickly return to it later. Hopeless. Only one way to fetch > > old message is to start MUA and browse through dozens of folders and > > hundreds of messages in every folder. > > I did a little work on this issue about 2 1/2 years ago. My approach > was to define a bookmark as a URL whose protocol is "mailmessage", so > that I could use Emacs' url.el library to parse it and ange-ftp.el to > access remote //[USER@]HOST folders. However, I wrote it as an add-on > to VM, so the code that actually views the folder and selects the > message would have to be converted to Rmail. And it would have to be > extended to handle IMAP folders (cf. file folders). Using URL for references to messages is a good solution, but instead of inventing ad hoc protocol name, it's better to use standard name "mid" defined by http://www.ietf.org/rfc/rfc2392.txt. Then, for example, opening the link should start a mail reader, find corresponding message by its Message-ID, prepare article buffer and switch to it (e.g. in case of Gnus to call the function `gnus-summary-goto-article'; other mail readers should have a similar function). I'm not sure yet, where this could be implemented: url.el is not part of Emacs (BTW: Why?); thingatpt.el mentions this protocol name, but that's all; perhaps this should be done partially in ffap.el. -- http://www.jurta.org/emacs/