Page MenuHomePhorge

Searching for "*" doesn't work for removed folders
Closed, ResolvedPublic8 Story Points

Description

https://issues.kolab.org/show_bug.cgi?id=5038

  • Disable calendar in korganizer using the red minus
  • Search for the disappeared calendar
  • Locate the calendar in the searchresults and reenable it.

Details

Ticket Type
Task

Revisions and Commits

Event Timeline

mollekopf raised the priority of this task from to 60.
mollekopf updated the task description. (Show Details)
mollekopf added a project: KDE PIM.
mollekopf changed Ticket Type from Task to Task.
mollekopf subscribed.

Also valid if you search for the removed caledar by name directly:

  • remove Vacation calendar
  • search for Vacation

show saved xantian search strings for collection 37:

delve -1 $KDEHOME/.local/share/baloo/collections -r 37
A/imap.example.com/Calendar/Personal Calendar
C30
IDCalendar/Personal Calendar
Mapplication/x-vnd.akonadi.calendar.event
Minode/directory
NS
Ncalendar
Npersonal
Pcalendar
Pcom
Pexample
Pimap
Ppersonal
calendar
personal

CollectionSearchJob for "*":

  • NS empty (match)
  • mimetype "text/calendar" (do not match)

-> so we either have to set the Mimetype "text/calendar" or search for "application/x-vnd.akonadi.calendar.event"

zanshin uses mimetype KCalCore::Todo::todoMimeType and NoteUtils::noteMimeType so we should also switch to KCalCore::Event:eventMimeType for korganizer.

search xapian db:

search for all collection with correct mimetype:

quest -d $KDEHOME/.local/share/baloo/collections -b "M:M" 'M:"application/x-vnd.akonadi.calendar.event"'

and for collectino with empty namespace:

quest -d $KDEHOME/.local/share/baloo/collections -b "NS:NS" 'NS:""'