Possible directions for mailcap format
Daniel Glazman <Daniel.Glazman@der.edfgdf.fr> Mon, 07 October 1996 12:25 UTC
Received: from cnri by ietf.org id aa25430; 7 Oct 96 8:25 EDT
Received: from list.cren.net by CNRI.Reston.VA.US id aa07615; 7 Oct 96 8:25 EDT
Received: from localhost (localhost.0.0.127.in-addr.arpa [127.0.0.1]) by
list.cren.net (8.7.6/8.6.12) with SMTP id IAA18322;
Mon, 7 Oct 1996 08:09:05 -0400 (EDT)
Received: from cf01 (cledf.edf.fr [192.54.193.133]) by list.cren.net
(8.7.6/8.6.12) with ESMTP id IAA18269 for <ietf-822@list.cren.net>;
Mon, 7 Oct 1996 08:04:02 -0400 (EDT)
Received: from clserv02.edf.fr (clserv02.edf.fr [130.98.118.118]) by cf01
(8.6.12/8.6.12) with ESMTP id OAA23450; Mon, 7 Oct 1996 14:05:47 +0200
Received: from cli51ak.der.edf.fr (cli51ak.der.edf.fr [130.98.16.29]) by
clserv02.edf.fr (8.6.12/8.6.12) with SMTP id OAA16525;
Mon, 7 Oct 1996 14:03:17 +0200
Received: by cli51ak.der.edf.fr (5.x/SMI-SVR4)
id AA05903; Mon, 7 Oct 1996 13:02:49 +0100
Message-Id: <9610071202.AA05903@cli51ak.der.edf.fr>
Date: Mon, 7 Oct 1996 13:02:49 +0100
Sender: owner-ietf-822@list.cren.net
Precedence: bulk
From: Daniel Glazman <Daniel.Glazman@der.edfgdf.fr>
To: ietf-822@list.cren.net, Daniel.Glazman@der.edfgdf.fr
Cc: Ned.Freed@innosoft.com, nsb@nsb.fv.com, masinter@parc.xerox.com,
moore@cs.utk.edu
Subject: Possible directions for mailcap format
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Mailer: MEUF [Mail Extended Using Faces v3.0.1 beta 1.1-full-mimePL1]
X-Listprocessor-Version: 8.1 -- ListProcessor(tm) by CREN
Hello, I tried some days ago to initiate a debate about mailcap format but it seems that everyone is a bit overloaded right now. I wrote a little document, as a basis for a discussion, that puts some ideas black on white. Let me just tell you that I successfully implemented some of them. The result is visible at http://lara0.exp.edf.fr/glazman/meufmotif.html I am waiting for your comments (or flames ;-). Regards from Paris, France. </D.Glazman> -- We absolutely need to make the difference between two areas of standardization: the first one implies the extension of the mailcap format itself, that means at least a semi-independance to material contingences, and the use of the mailcap format, which is directly linked to system-dependant problems and communication processes. Even if the mailcap format tried to remain strictly independant to applications, the integration of MIME in different protocols and under different computing systems makes managing a unique mailcap for all purposes a real challenge to system administrators. It is then suggested to build a new standard based on the following points : Mailcap format 1.1 Improve mailcap format in order to 1. declare in a mailcap file the version of mailcap format it is conformant to @Mailcap-Version 2 2. be able to declare conditions and select mailcap entries depending on external variables (client, client_version, system, system_version for instance, [know what ? Thinking aloud...]) @if (client == "meuf" && client_version >= 2) @append("http://meuf.edf.fr/media-types/mailcap"); @endif 3. be able to build a media-types table from the contents of an original (and possibly remote) mailcap file that can access to other mailcap (and possibly remote) mailcap files. @append(URL) @replace(URL) ... 4. add parameters' definitions to each mailcap entry and be able to discriminate composition command, view command, and so on in function of parameters' values parameter = charset ENUM {"us-ascii"|"iso-8859-1"}; parameter = boundary RANDOM "meuf_bnd_%s"; parameter = site STRING "ftp.edf.fr"; ... 1.2 add new functionalities to mailcap format : 1. split the view command, which is not a field in RFC 1524 mailcap format like other commands attached to an entry, in different fields (unique choice) : view = blabla %s; which means that the client has to call this external view command in order to visualize such a bodypart copiousoutput; which means that the user agent knows how to visualize such a bodypart type by itself without external help The absence of both choices means that no visualization process is currently attached to this mailcap entry. 2. add a new field that contains a command line to be called before bodypart visualization as a format translator. The user agent should use its standard output, if any, as result. preprocessor = vn7to8 %s; This example will allow a VISCII compliant user agent, having correct fonts for vietnamese text edition, to render properly a text composed in 7bit VIQR. Used in conjunction with copiousoutput field, it can give users opportunity to move from a 7bit old-fashioned e_mail system to a MIME internationalized system. 3. as a RFC 1524 conformant user agent can call, for a given mediatype, an external viewer or use its embedded functionalities, a user agent should be able to compose a bodypart using an external composer OR its internal functionnalities. It is then suggested to add two new fields to standard mailcap format, exclusive to compose field. inlineinput; which means that user agent knows how to compose that kind of bodypart and that this composition is not made through a file selector. fileselection; which means that user should not really compose such a media-type but only choose a local file. Absence of all choices means that media-type is not composeable. 4. a postprocessor shoud be called when a user agent has capacities to compose a coded or "light" version of a bodypart and capacities to visualize the full version of the bodypart but not the ability to compose it... postprocessor = vn7to8 %s; This would allow a UA to compose a vietnamese text in VIQR and send it in 8bit VISCII... 5. specify the default transfer encoding for the media-type : default-transfer-encoding = quoted-printable; 6. specify the default content-disposition to be used when composing such a media-type or to be used when visualizing a message partially or fully non conformant to RFC 1866 image/gif; \ ... default-disposition = inline; ... 7. extend the x11-bitmap definition. This field should be renamed icon. Used in conjunction with conditional cases (@if), it can be used under all computing systems. icon = /usr/local/faces/etc/text/face.xbm; icon = c:\images\text.bmp; Its type should be included in a new field icontype. The value of this field is a MIME media-type. icontype = image/gif; icontype = image/cgm; Mailcap Use 2.1 Define more precisely how new media types should be submitted to IANA and registered by IANA. Think about automatic distribution of the registered entry by electronic means. type/subtype description = ... paramater = ... parameter = ... default-transfer-encoding = ... default-disposition = ... 2.2 Create a new media-type (application/mailcap for instance [just thinking aloud]) that would allow a mailcap file to be distributed by MIME conformant protocols, ie e_mail and HTTP. Give correct parameters to this media-type in order to be able to act in all normal ways on a remote mailcap file (append, replace, ...). application/mailcap description = MIME mailcap entry parameter = action ENUM {"append"|"override"|"announce"} default-transfer-encoding = 7bit default-disposition = attachment 2.3 If security considerations are not too important, define a new multipart media type (multipart/self-supporting for instance [still thinking aloud]) made of a bodypart and its associated application/mailcap. 2.4 Extend the standard locations of a mailcap file as defined in RFC 1524 to a default URL location (http://mailhost/mailcap for instance, where mailhost is defined in the local DNS). In decreasing order of priority : 1. user specific location; possibly defined under Unix as ~user/.mailcap (see RFC 1524 appendix A) 2. host specific location; see also RFC 1524 appendix A 3. site specific location; proposal : http://mailhost/mailcap --------------------------------- </Daniel>
- Possible directions for mailcap format Daniel Glazman
- Re: Possible directions for mailcap format Larry Masinter
- Re: Possible directions for mailcap format Daniel Glazman