From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/17017 Path: main.gmane.org!not-for-mail From: wmperry@aventail.com (William M. Perry) Newsgroups: gmane.emacs.gnus.general Subject: Re: Those MIME requirements Date: 12 Sep 1998 20:32:41 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <86pvd06bly.fsf@kramer-fast.bp.aventail.com> References: Reply-To: wmperry@aventail.com NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035155793 31166 80.91.224.250 (20 Oct 2002 23:16:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:16:33 +0000 (UTC) Return-Path: Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id VAA12050 for ; Sat, 12 Sep 1998 21:32:28 -0400 (EDT) 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 UAF18901; Sat, 12 Sep 1998 20:03:25 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 12 Sep 1998 20:32:06 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id UAA06529 for ; Sat, 12 Sep 1998 20:31:56 -0500 (CDT) Original-Received: from slow.bp.aventail.com (vinc14.cntwk.net [207.205.120.172]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id VAA12033 for ; Sat, 12 Sep 1998 21:31:47 -0400 (EDT) Original-Received: from kramer-fast.bp.aventail.com (kramer-fast.bp.aventail.com [192.168.200.2]) by slow.bp.aventail.com (8.8.5/8.8.5) with ESMTP id RAA28559 for ; Sat, 12 Sep 1998 17:31:12 -0700 Original-Received: (from wmperry@localhost) by kramer-fast.bp.aventail.com (8.8.5/8.8.5) id UAA00468; Sat, 12 Sep 1998 20:32:42 -0500 Original-To: ding@gnus.org X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7 writes: > Kai Grossjohann writes: > > > I think he's saying it should be possible to put Lisp in ~/.mailcap > > which gets the content of a part as input, somehow. > > Hm... Does the mailcap format allow that? There are a lot of % escapes that you need to handle for mailcap. Look at mm-unescape-mime-test for some of them. Here's a synopsis (at least of what mm.el supports): In viewers, you can put: %u = URL %s = filename In tests, you can put: %t = content-type %{xxx} = header named xxx It also recognizes but doesn't support: %F = "" %M = "" %n = "" I don't remember what those are for anymore... they were something that wasn't real important for most of the tests in existence. We could easily make the Emacs lisp portion of the mailcap to deal with lisp viewers look like: image/gif; xv %s; x-emacs-test=(builtin-emacs-viewer "%t"); \ x-emacs-viewer=(message "Should view %f (%u) (%t)") -Bill P.