After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 503376 - Cannot disable evolution "Enable Evolution email Indexing" in "Emails" tab
Cannot disable evolution "Enable Evolution email Indexing" in "Emails" tab
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Preferences
unspecified
Other Solaris
: Normal normal
: ---
Assigned To: Halton Huo
Jamie McCracken
: 507984 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-12-13 08:10 UTC by seven
Modified: 2008-07-29 09:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for bug #503376 (17.75 KB, patch)
2008-01-18 02:29 UTC, Halton Huo
none Details | Review

Description seven 2007-12-13 08:10:02 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:
Comment 1 Halton Huo 2007-12-13 09:03:37 UTC
Run "pkill trackerd && trackerd -R" help?

If so, it is tracker-preferences bug, check/uncheck evolution email need trackerd reindex.
Comment 2 avazhang 2007-12-13 11:27:20 UTC
Yes, it works after "pkill trackerd && trackerd -R".
Comment 3 seven 2008-01-08 05:49:51 UTC
*** Bug 507984 has been marked as a duplicate of this bug. ***
Comment 4 Halton Huo 2008-01-18 02:29:37 UTC
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
Comment 5 avazhang 2008-07-29 07:31:32 UTC
Fixed on Verm95(Sun internal build for Gnome, Gnome 2.23.4)
Comment 6 avazhang 2008-07-29 09:17:04 UTC
*** Bug 507984 has been marked as a duplicate of this bug. ***