aboutsummaryrefslogtreecommitdiff
path: root/libsylph/virtual.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-10 08:33:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-10 08:33:53 +0000
commit82253780e85a6f011128ff3094294d9b16bf06f8 (patch)
tree1874f665221b2ebf77eb83eb884f4747709e1c84 /libsylph/virtual.c
parent8ff103aaf36732c4b44b044d9cf9ef252ca24869 (diff)
implemented the modification of search folder condition.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@880 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/virtual.c')
-rw-r--r--libsylph/virtual.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libsylph/virtual.c b/libsylph/virtual.c
index f7138c1c..c6449196 100644
--- a/libsylph/virtual.c
+++ b/libsylph/virtual.c
@@ -217,9 +217,10 @@ static GHashTable *virtual_read_search_cache(FolderItem *item)
g_return_val_if_fail(item != NULL, NULL);
path = folder_item_get_path(item);
- file = g_strconcat(path, G_DIR_SEPARATOR_S, "search_cache", NULL);
+ file = g_strconcat(path, G_DIR_SEPARATOR_S, SEARCH_CACHE, NULL);
debug_print("reading search cache: %s\n", file);
- fp = procmsg_open_data_file(file, 1, DATA_READ, NULL, 0);
+ fp = procmsg_open_data_file(file, SEARCH_CACHE_VERSION, DATA_READ,
+ NULL, 0);
g_free(file);
g_free(path);
if (!fp)
@@ -484,8 +485,9 @@ static GSList *virtual_get_msg_list(Folder *folder, FolderItem *item,
info.search_cache_table = NULL;
path = folder_item_get_path(item);
- cache_file = g_strconcat(path, G_DIR_SEPARATOR_S, "search_cache", NULL);
- info.fp = procmsg_open_data_file(cache_file, 1, DATA_WRITE, NULL, 0);
+ cache_file = g_strconcat(path, G_DIR_SEPARATOR_S, SEARCH_CACHE, NULL);
+ info.fp = procmsg_open_data_file(cache_file, SEARCH_CACHE_VERSION,
+ DATA_WRITE, NULL, 0);
g_free(cache_file);
g_free(path);
if (!info.fp)