Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/mime-vcard/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


file(1) and marshal(1) assign vCards a MIME type of text/x-vcard.
This patch changes them to use the IANA assigned type 'text/directory'.

Note that with this patch, "file -m vcard-file" will print the string

	text/directory;profile=vcard

I.e. it includes the recommended 'profile' parameter. This
could potentially break existing code that naïvely parses
the output by assuming everything after the '/' is the
subtype. But considering how this output is typically used it
shouldn't be an issue.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.