[Kde-pim] Initializing IndexPolicyAttribute

Kevin Krammer kevin.krammer at gmx.at
Mon Dec 5 12:15:07 GMT 2011


On Monday, 2011-12-05, Will Stephenson wrote:
> On Sunday 04 December 2011 14:35:43 Kevin Krammer wrote:
> > On Saturday, 2011-12-03, Will Stephenson wrote:
> > > I'm working on a couple of features to reduce the volume of mail
> > > that is indexed by default:
> > > 
> > > * Reduce the number of collections that are indexed by Nepomuk by
> > > default (drastically)
> > > * Add a dialog to multiple-select those to be indexed from all
> > > collections so people don't have to go through the maintenance
> > > folder properties tab for all folders.
> > > 
> > > #2 is the subject of http://git.reviewboard.kde.org/r/103318 and
> > > 103320
> > > 
> > > For #1, I am not sure where to set IndexPolicyAttribute to
> > > indexingEnabled=false on mail collections.
> > > 
> > > 1) In each mail resource as it fetches collections?
> > > 2) In KMail, as it knows which collections have special roles?
> > > 3) Some other central location that I'm not aware of
> > > 4) All of the above?
> > 
> > If the attribute's value would be "false" by default, you could probably
> > set it somewhere in the special mail collections jobs.
> 
> The current behaviour is:
> * IndexPolicyAttribute (IPA) is not present on collections by default
> * Where present, IPA defaults to enabled
> * akonadi_nepomuk_feeder interprets absent IPA as 'index this collection'
> 
> I would like to change these defaults to
> * akonadi_nepomuk_Feeder interprets absent IPA as 'do not index this
> collection'.

right

> I'm not sure whether setting the default value of the attribute in
> indexpolicyattribute.cpp to 'false' is necessary, given that I'll also
> initialise IPA on collections to be indexed.  What do you think?

I meant treating absence of attribute as "do not index" when I said "default 
to false". So I think "true" is OK as the default value for the attribute 
class itself.

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: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20111205/bfbe3a57/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