From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/13252 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Features before the next millenium Date: 14 Dec 1997 11:33:36 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035152653 8321 80.91.224.250 (20 Oct 2002 22:24:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:24:13 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id JAA11220 for ; Sun, 14 Dec 1997 09:13:58 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id LAA07328 for ; Sun, 14 Dec 1997 11:16:09 -0600 (CST) Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id FBB04356; Sun, 14 Dec 1997 05:30:45 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 14 Dec 1997 04:49:30 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id EAA06718 for ; Sun, 14 Dec 1997 04:48:21 -0600 (CST) Original-Received: (qmail 2717 invoked by uid 504); 14 Dec 1997 10:48:06 -0000 Original-Received: (qmail 2706 invoked from network); 14 Dec 1997 10:48:04 -0000 Original-Received: from xyplex30.uio.no (HELO sparky.gnus.org) (129.240.154.50) by claymore.vcinet.com with SMTP; 14 Dec 1997 10:48:03 -0000 Original-Received: (from larsi@localhost) by sparky.gnus.org (8.8.5/8.8.5) id LAA23993; Sun, 14 Dec 1997 11:48:55 +0100 Mail-Copies-To: never Original-To: ding@gnus.org In-Reply-To: Steinar Bang's message of "06 Dec 1997 16:28:36 +0100" X-Mailer: Quassia Gnus v0.19/XEmacs 19.15 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > Could you write up a functional spec of what you need? (Not that I'm > promising to write it, mind. I know MIME fairly well, but hardly any > emacs lisp). Just an initial one: > - a list of functions > - short descriptions of the functions, where they are getting their > input, where they are putting their output, and what they should do > with the input I'm not exactly sure what I'd like to have, really. I don't know which MIME features would be required and stuff. > Eg. something like: > - mime-parse-buffer: runs through a buffer holding a MIME message, > and returns a list of records holding the MIME type, the encoding > used, and the start an end positions of all message parts found in > the buffer Yes; that sounds very nice. :-) Let's see... Perhaps something like: ------ (mime-parse-buffer BUFFER) Return a list of MIME handles based on the contents of BUFFER. (mime-insert HANDLE) Take a MIME handle and insert it after point. (mime-save HANDLE FILE) Take a MIME handle and save it to FILE. ------ That is, I don't want to know anything about MIME things at all. I'd guess these MIME handles would consist of a buffer, a BEG mark and an END mark, but perhaps more data would be required. `mime-insert' would do the expected with text under all Emacsen, but pictures can't be inserted under Emacs, so a `mime-external-view' might also be nice. Which means that a `mime-external-p' predicate function would be nice to have to say whether something could be displayed in a buffer or not. With basic building blocks like this, I think making Gnus totally MIME-aware (as a reader, anyway; composition is a different matter) would be very simple. With a single-part MIME article (ie., an article which `mime-parse-buffer' responds with a list that has only one element), Gnus would show the article as usual. With multipart articles, Gnus could add pseudo-articles for the additional parts, or other types of buttons. Whatever. And then display these with `mime-insert' or `mime-external-view'. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen