From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24039 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: %{...} in mailcap (was: bugs in mailcap (patch: 93-zsh3)) Date: 09 Jul 1999 12:20:14 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2naet5lrr5.fsf@tiger.jia.vnet> References: <2nhfnfwrsz.fsf@tiger.jia.vnet> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035161676 6556 80.91.224.250 (21 Oct 2002 00:54:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:54:36 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA20729 for ; Fri, 9 Jul 1999 12:20:04 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB21037; Fri, 9 Jul 1999 11:19:57 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 09 Jul 1999 11:20:33 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA12470 for ; Fri, 9 Jul 1999 11:20:22 -0500 (CDT) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA20698 for ; Fri, 9 Jul 1999 12:19:21 -0400 (EDT) Original-Received: from heart.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by cayuga.cs.rochester.edu (8.9.3/Q) with ESMTP id MAA15678 for ; Fri, 9 Jul 1999 12:19:15 -0400 (EDT) Original-Received: (from zsh@localhost) by heart.cs.rochester.edu (8.9.3/8.9.3) id MAA01530; Fri, 9 Jul 1999 12:20:15 -0400 Original-To: Gnus Mailing List X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q Original-Lines: 38 User-Agent: Gnus/5.070093 (Pterodactyl Gnus v0.93) XEmacs/21.2 (Chiyoda) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24039 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24039 >>>>> "LMI" == Lars Magne Ingebrigtsen writes: >> Here the patch. By the way, I guess mm-display-external do not handle >> %-sequences like %{name}, %{patchnumber}. LMI> No, it doesn't -- I didn't even know that one could do that. Is the LMI> mailcap format specified anywhere? The following is cited from mailcap manual of RedHat 6.0 (by Nathaniel S. Borenstein). ,-------- | The "command" field is any UNIX command ("cat %s" in the | above example), and is used to specify the interpreter for | the given type of message. It will be passed to the shell | via the system(3) facility. Semicolons and backslashes | within the command must be quoted with backslashes. If | the command contains "%s", those two characters will be | replaced by the name of a file that contains the body of | the message. If it contains "%t', those two characters | will be replaced by the content-type field, including the | subtype, if any. (That is, if the content-type was | "image/pbm; opt1=something-else", then "%t" would be | replaced by "image/pbm".) If the command field contains | "%{" followed by a parameter name and a closing "}", then | all those characters will be replaced by the value of the | named parameter, if any, from the Content-type header. | Thus, in the previous example, "%{opt1}" will be replaced | by "something-else". Finally, if the command contains "", | those two characters will be replaced by a single % ch | | aracter. (In fact, the backslash can be used to quote any | character, including itself.) `-------- -- Shenghuo