tracker r2474 - in trunk: . src/tracker-indexer/modules



Author: carlosg
Date: Fri Nov  7 13:00:29 2008
New Revision: 2474
URL: http://svn.gnome.org/viewvc/tracker?rev=2474&view=rev

Log:
2008-11-07  Carlos Garnacho  <carlos imendio com>

        * src/tracker-indexer/modules/evolution.c (get_imap_uri): Make sure we
        decompose the URI following the same procedure than Tracker.

Modified:
   trunk/ChangeLog
   trunk/src/tracker-indexer/modules/evolution.c

Modified: trunk/src/tracker-indexer/modules/evolution.c
==============================================================================
--- trunk/src/tracker-indexer/modules/evolution.c	(original)
+++ trunk/src/tracker-indexer/modules/evolution.c	Fri Nov  7 13:00:29 2008
@@ -993,7 +993,7 @@
 	      gchar	  **basename)
 {
 	GList *keys, *k;
-	gchar *path, *dir, *subdirs;
+	gchar *path, *uri, *dir, *subdirs;
 
 	path = file->path;
 	keys = g_hash_table_get_keys (accounts);
@@ -1001,8 +1001,6 @@
 
 	for (k = keys; k; k = k->next) {
 		if (strstr (path, k->data)) {
-			*uri_base = g_strdup_printf ("email://%s", (gchar *) g_hash_table_lookup (accounts, k->data));
-
 			dir = g_build_filename (imap_dir, k->data, NULL);
 
 			/* now remove all relevant info to create the email:// basename */
@@ -1012,10 +1010,15 @@
 			subdirs = tracker_string_remove (subdirs, "/subfolders");
 			subdirs = tracker_string_remove (subdirs, "/summary");
 
-			*basename = g_strdup_printf ("%s;uid=%s", subdirs, uid);
+                        uri = g_strdup_printf ("email://%s/%s;uid=%s",
+                                               (gchar *) g_hash_table_lookup (accounts, k->data),
+                                               subdirs, uid);
+
+                        tracker_file_get_path_and_name (uri, uri_base, basename);
 
 			g_free (subdirs);
 			g_free (dir);
+                        g_free (uri);
 
 			break;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]