From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: %{...} in mailcap (was: bugs in mailcap (patch: 93-zsh3))
Date: 09 Jul 1999 12:20:14 -0400 [thread overview]
Message-ID: <2naet5lrr5.fsf@tiger.jia.vnet> (raw)
In-Reply-To: <m3u2rdq0zn.fsf@quimbies.gnus.org>
>>>>> "LMI" == Lars Magne Ingebrigtsen <bugs@gnus.org> 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
next parent reply other threads:[~1999-07-09 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2nhfnfwrsz.fsf@tiger.jia.vnet>
[not found] ` <m3u2rdq0zn.fsf@quimbies.gnus.org>
1999-07-09 16:20 ` Shenghuo ZHU [this message]
1999-07-09 16:47 ` William M. Perry
1999-07-09 21:31 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2naet5lrr5.fsf@tiger.jia.vnet \
--to=zsh@cs.rochester.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).