Network Working Group N. Borenstein Request for Comments: 1524 Bellcore Category: Informational September 1993A User Agent Configuration Mechanism For Multimedia Mail Format Information
Borenstein [Page 1]
RFC 1524 Multimedia Mail Configuration September 1993
This approach means that, with a one-time modification, a wide variety of mail reading programs can be given the ability to display a wide variety of types of message. Moreover, extending the set of media types supported at a site becomes a simple matter of installing a binary and adding a single line to a configuration file. Crucial to this scheme, however, is that all of the user agents agree on a common representation and source for the configuration file. This memo proposes such a common representation.
Borenstein [Page 2]
RFC 1524 Multimedia Mail Configuration September 1993
Mailcap-File = *Mailcap-Line
Borenstein [Page 3]
RFC 1524 Multimedia Mail Configuration September 1993
-- The "edit" field may be used to specify a program that can be used
Borenstein [Page 4]
RFC 1524 Multimedia Mail Configuration September 1993
-- The "description" field simply provides a textual description,
Borenstein [Page 5]
RFC 1524 Multimedia Mail Configuration September 1993
Mailcap-Entry = typefield ; view-command
Borenstein [Page 6]
RFC 1524 Multimedia Mail Configuration September 1993
Acknowledgements
Borenstein [Page 7]
RFC 1524 Multimedia Mail Configuration September 1993
Appendix A: Implementation Details for UNIX
Borenstein [Page 8]
RFC 1524 Multimedia Mail Configuration September 1993
Furthermore, any occurrence of "%t" will be replaced by the content- type and subtype specification. (That is, if the content-type is "text/plain", then %t will be replaced by "text/plain".) A literal % character may be quoted as \%. Finally, named parameters from the Content-type field may be placed in the command execution line using "%{" followed by the parameter name and a closing "}" character. The entire parameter should appear as a single command line argument, regardless of embedded spaces. Thus, if the message has a Content- type line of:
Borenstein [Page 9]
RFC 1524 Multimedia Mail Configuration September 1993
Semantics of the "compose" field
Borenstein [Page 10]
RFC 1524 Multimedia Mail Configuration September 1993
Appendix B: Sample Mailcap File
Borenstein [Page 11]
RFC 1524 Multimedia Mail Configuration September 1993
Appendix C: A Note on Format Translation