GNOME Bugzilla – Bug 503376
Cannot disable evolution "Enable Evolution email Indexing" in "Emails" tab
Last modified: 2008-07-29 09:17:04 UTC
Please describe the problem: We can search the emails from evolution no matter "Enable Evolution email Indexing" checked or not. Steps to reproduce: 1. Startup tracker-preferences Launch->Preferences->Search and Indexing, 2. Disable "Enable Evolution email Indexing" in "Emails" tab. 3. Close tracker-preferences. 4. Search an email item. 5. Type tracker-stats in terminal. Actual results: After step 4 :the email items are searched out. After step 5 :the number of email from evolution is counted in Statistics. Expected results: After step 4 :the email items should not be searched out. After step 5 :the number of email from evolution should not be counted in Statistics. Does this happen every time? YES Other information:
Run "pkill trackerd && trackerd -R" help? If so, it is tracker-preferences bug, check/uncheck evolution email need trackerd reindex.
Yes, it works after "pkill trackerd && trackerd -R".
*** Bug 507984 has been marked as a duplicate of this bug. ***
Created attachment 103110 [details] [review] patch for bug #503376 My aim is to find a better way to let trackerd update indexing without restart/reindex trackerd when user change options through tracker-preferences. Let me explain this patch in more details. [1] src/trackerd/tracker-dbus-methods.c Set tracker->index_status = INDEX_EMAILS, this will cause email indexing starts in process_files_thread (). If evolution index is enabled, do almost same thing as before. Otherwise, do two things here: (1) call tracker_email_remove_service_directories to remove evolution related watch_directory from tracker->service_directory_list and tracker->service_directory_table. (2) tracker_db_email_delete_email_app to remove evolution related from database. [2] src/trackerd/tracker-db-email.c|h Add function declaration and definition of tracker_db_email_delete_email_app () [3] src/trackerd/tracker-email-utils.c|h Add function declaration and definition of email_remove_watch_directory () email_remove_watch_directories () [4] src/trackerd/tracker-email.c|h Add function declaration and definition of tracker_email_remove_service_directories() [5] src/trackerd/tracker-email-evolution.c|h Add function declaration and definition of evolution_remove_watch_emails () [6] src/trackerd/tracker-db-sqlite.c, src/trackerd/tracker-db.h Add function declaration and definition of tracker_db_cleanup_service_stat () [7] src/trackerd/tracker-utils.c|h Add function declaration and definition of tracker_remove_service_path () Rewrite function tracker_add_service_path () to not add duplicated services. [8] src/tracker-preferences/tracker-preferences.c Not restart trackerd when evolution widget changed. [9] data/sqlite-stored-procs.sql Add new proc DeleteServiceByType, DeleteMboxByApp, DecStatNum
Fixed on Verm95(Sun internal build for Gnome, Gnome 2.23.4)