Bug 27743

Summary: MIME type for vCard should be updated to text/vcard
Product: shared-mime-info Reporter: Jong Yoon Lee <jylee>
Component: freedesktop.org.xmlAssignee: Shared Mime Info group <shared_mime_info>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Jong Yoon Lee 2010-04-19 15:12:56 UTC
text/vcard MIME type for vCard 3.0 is pending IANA acceptance and it is already in use by CardDAV.  text/vcard should be used instead of text/x-vcard or text/directory.

http://tools.ietf.org/search/draft-ietf-vcarddav-vcardrev-10#section-10

http://tools.ietf.org/search/draft-ietf-vcarddav-carddav-10#section-6.2.2
Comment 1 Bastien Nocera 2010-09-30 09:32:51 UTC
Do you have a patch for those changes?
Comment 2 Jong Yoon Lee 2010-09-30 10:00:21 UTC
Sorry I don't have the actual patch.  I'm working it around from magic and globs files.  The change will involve something along the line of the following, although it might be missing something.  This is untested.

*** freedesktop.org.xml	2009-02-21 06:08:16.000000000 -0800
--- freedesktop.org.xml.new	2010-09-30 09:57:17.000000000 -0700
***************
*** 16328,16340 ****
      <glob pattern="*.css"/>
      <glob pattern="*.CSSL"/>
    </mime-type>
!   <mime-type type="text/directory">
      <comment>electronic business card</comment>
      <comment xml:lang="da">elektronisk visitkort</comment>
      <comment xml:lang="eo">elektronika vizitkarto</comment>
      <comment xml:lang="pt">cartão de visita electrónico</comment>
      <comment xml:lang="sq">kartë elektronike biznesi</comment>
      <comment xml:lang="zh_CN">电子商务卡</comment>
      <alias type="text/x-vcard"/>
      <sub-class-of type="text/plain"/>
      <magic priority="50">
--- 16328,16341 ----
      <glob pattern="*.css"/>
      <glob pattern="*.CSSL"/>
    </mime-type>
!   <mime-type type="text/vcard">
      <comment>electronic business card</comment>
      <comment xml:lang="da">elektronisk visitkort</comment>
      <comment xml:lang="eo">elektronika vizitkarto</comment>
      <comment xml:lang="pt">cartão de visita electrónico</comment>
      <comment xml:lang="sq">kartë elektronike biznesi</comment>
      <comment xml:lang="zh_CN">电子商务卡</comment>
+     <alias type="text/directory"/>
      <alias type="text/x-vcard"/>
      <sub-class-of type="text/plain"/>
      <magic priority="50">
Comment 3 Bastien Nocera 2011-05-25 07:17:37 UTC
Bug 21680 deals with vcards as well.

*** This bug has been marked as a duplicate of bug 21680 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.