Bug 118287 - Add MIME type text/directory for .vcf (VCard 3.1) files
Summary: Add MIME type text/directory for .vcf (VCard 3.1) files
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-14 00:27 UTC by Tristan Miller
Modified: 2005-12-14 12:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2005-12-14 00:27:32 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    SuSE RPMs

The current KDE file associations list VCards as "text/x-vcard" with the filename pattern *.vcf or *.vct.

However, the IANA has assigned VCards the MIME content type "text/directory", as per RFC 2425.

Since "text/directory" is listed in the freedesktop.org MIME database, which will be used  by KDE 4, perhaps this bug should be marked as RESOLVED/FIXED (?) but maybe the developers want to fix it sooner.

Related bugs:  Bug 49801

References:
1. <http://www.iana.org/assignments/media-types/text/>
2. <http://www.rfc-editor.org/rfc/rfc2425.txt>
3. <http://www.freedesktop.org/wiki/Software_2fshared_2dmime_2dinfo>
Comment 1 Stephan Kulow 2005-12-14 09:22:39 UTC
David, any preference?
Comment 2 David Faure 2005-12-14 11:58:03 UTC
We can't change this in 3.5.x, it would break e.g. kaddressbook from kdepim-3.5.0 which expects text/x-vcard. But I'll make the change in kdelibs-trunk already, one less mimetype to look into when we switch to f.d.o shared mime...
Comment 3 David Faure 2005-12-14 12:01:57 UTC
SVN commit 488412 by dfaure:

The real mimetype for .vcf files is text/directory, as per the IANA.
Thanks to Tristan Miller for letting us know.
BUG: 118287


 A             directory.desktop   x-vcard.desktop#488256 [TRAILING SPACE]
 M  +2 -1      x-vcard.desktop  


--- trunk/KDE/kdelibs/mimetypes/text/x-vcard.desktop #488411:488412
@@ -75,7 +75,8 @@
 Icon=vcard
 Type=MimeType
 MimeType=text/x-vcard
-Patterns=*.vct;*.vcf;*.VCT;*.VCF
+# This mimetype is just for compatibility with KDE-3.x; the real name is text/directory
+X-KDE-IsAlso=text/directory
 
 [Property::X-KDE-text]
 Type=bool