Re: patch = text/*



On Fri, 17 August 10:57 Carlos Morgado wrote:
> 
> Could people posting diffs as MIME attachments use a text/ type ? there is
> nothing more annoying than a application/octet-stream patch that can't be
> viewed inline.
> 
> for balsa users :) is simply a mather of creating a text/patch or somesuch
> type on control center associated with whatever extension you use

Whoa!  You can't just make up MIME types!  You need to follow the MIME type
registration rules in RFC 2048.  In short, top level MIME types should be one
of "text", "image", "application",  "audio" or "video".  Subtypes must
be a value registered with IANA or a private extension token which starts
with "x-" or "x.".

So the patch should be of type "text/x-patch".  Actually "application/x-patch"
is more in the spirit of RFC 2046 if less convenient.

Brian Stafford




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]