[Kde-pim] RFC: Akonadi MIME type filtering/matching

Kevin Krammer kevin.krammer at gmx.at
Sun Apr 26 20:10:05 BST 2009


Hi folks,

while investigating why some people didn't see any folders in the new storage 
collection selection dialog the KResource client bridges I discovered a that 
this basically happened because of another use case of MIME type filtering.

The use case I had in mind while working on Akonadi::MimeTypeChecker is this:

an application wants to get all collections containing any kind of calendar 
data, so it filters collections based on MIME type text/calendar.
This matches collections with text/calendar and any of its subtypes, e.g.
application/x-vnd.akonadi.calendar.event
When filtering for the event subtype, only those remain that explicitly 
include that sub MIME type.

The problem is now that when I want to list all viable storage collections for 
an event, I filter for application/x-vnd.akonadi.calendar.event
Collections which just specify text/calendar do not match this strict subtype 
filter.

I didn't catch this locally since I had been testing with the ical resource 
and it specifies all sub types explicitly, satisfying both scenarios.
However, I think it is legitmate for a resource to only specify the common 
type if it can handle all subtypes anyway.

Anyone having suggestions on how 
CollectionFilterProxyMode::addMimeTypeFilter() should really behave?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090426/d27ae6fe/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list