diff options
author | Not Zed <NotZed@Ximian.com> | 2004-09-28 12:32:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-09-28 12:32:13 +0800 |
commit | f3c3a422abf537dcfc24030433e9556d34d71492 (patch) | |
tree | 7c4f1556de175249a8b2ed474e4f28b26b18ab70 /camel/providers/local/camel-mbox-store.c | |
parent | abfce8d7d7a749b0073e3140ed2157b230f5d136 (diff) | |
download | gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar.gz gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar.bz2 gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar.lz gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar.xz gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.tar.zst gsoc2013-evolution-f3c3a422abf537dcfc24030433e9556d34d71492.zip |
make sure body indexing is turned off always, missed the ~ bit.
2004-09-27 Not Zed <NotZed@Ximian.com>
* providers/local/camel-spool-folder.c (camel_spool_folder_new):
make sure body indexing is turned off always, missed the ~ bit.
* providers/local/camel-spool-store.c (camel_folder_info_new):
dont take unread count.
(spool_fill_fi): copied from mbox more or less.
(scan_dir): use fill_fi to setup counts.
(spool_new_fi): replace camel_foldeR_info_new with one that does
most of the work, also generates uri's properly.
(get_folder_info_mbox): make the 'system' inbox name translatable.
* providers/local/camel-mbox-folder.h: make the
camel_mbox_folder_get* functions properly public.
* providers/local/camel-local-folder.h: pass the object to the
virtual methods now, fix all callers.
* providers/local/camel-spool-folder.c (spool_get_full_path)
(spool_get_meta_path): implement, this needs to work differnetly
to the parent classes implementations :-/.
svn path=/trunk/; revision=27407
Diffstat (limited to 'camel/providers/local/camel-mbox-store.c')
-rw-r--r-- | camel/providers/local/camel-mbox-store.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c index 76811949fd..f98c87a8ea 100644 --- a/camel/providers/local/camel-mbox-store.c +++ b/camel/providers/local/camel-mbox-store.c @@ -48,9 +48,6 @@ static CamelLocalStoreClass *parent_class = NULL; #define CF_CLASS(so) CAMEL_FOLDER_CLASS(CAMEL_OBJECT_GET_CLASS(so)) #define CMBOXF_CLASS(so) CAMEL_MBOX_FOLDER_CLASS(CAMEL_OBJECT_GET_CLASS(so)) -extern char *camel_mbox_folder_get_full_path(const char *toplevel_dir, const char *full_name); -extern char *camel_mbox_folder_get_meta_path(const char *toplevel_dir, const char *full_name, const char *ext); - static CamelFolder *get_folder(CamelStore *store, const char *folder_name, guint32 flags, CamelException *ex); static void delete_folder(CamelStore *store, const char *folder_name, CamelException *ex); static void rename_folder(CamelStore *store, const char *old, const char *new, CamelException *ex); @@ -97,7 +94,7 @@ mbox_folder_name_to_path(CamelStore *store, const char *folder_name) { const char *toplevel_dir = CAMEL_LOCAL_STORE(store)->toplevel_dir; - return camel_mbox_folder_get_full_path(toplevel_dir, folder_name); + return camel_mbox_folder_get_full_path(NULL, toplevel_dir, folder_name); } static char * @@ -105,7 +102,7 @@ mbox_folder_name_to_meta_path(CamelStore *store, const char *folder_name, const { const char *toplevel_dir = CAMEL_LOCAL_STORE(store)->toplevel_dir; - return camel_mbox_folder_get_meta_path(toplevel_dir, folder_name, ext); + return camel_mbox_folder_get_meta_path(NULL, toplevel_dir, folder_name, ext); } static char *extensions[] = { @@ -419,11 +416,11 @@ xrename(CamelStore *store, const char *old_name, const char *new_name, const cha int err = 0; if (ext != NULL) { - oldpath = camel_mbox_folder_get_meta_path(toplevel_dir, old_name, ext); - newpath = camel_mbox_folder_get_meta_path(toplevel_dir, new_name, ext); + oldpath = camel_mbox_folder_get_meta_path(NULL, toplevel_dir, old_name, ext); + newpath = camel_mbox_folder_get_meta_path(NULL, toplevel_dir, new_name, ext); } else { - oldpath = camel_mbox_folder_get_full_path(toplevel_dir, old_name); - newpath = camel_mbox_folder_get_full_path(toplevel_dir, new_name); + oldpath = camel_mbox_folder_get_full_path(NULL, toplevel_dir, old_name); + newpath = camel_mbox_folder_get_full_path(NULL, toplevel_dir, new_name); } if (stat(oldpath, &st) == -1) { @@ -618,8 +615,8 @@ fill_fi(CamelStore *store, CamelFolderInfo *fi, guint32 flags) /* This should be fast enough not to have to test for INFO_FAST */ root = camel_local_store_get_toplevel_dir((CamelLocalStore *)store); - path = camel_mbox_folder_get_meta_path(root, fi->full_name, ".ev-summary"); - folderpath = camel_mbox_folder_get_full_path(root, fi->full_name); + path = camel_mbox_folder_get_meta_path(NULL, root, fi->full_name, ".ev-summary"); + folderpath = camel_mbox_folder_get_full_path(NULL, root, fi->full_name); mbs = (CamelMboxSummary *)camel_mbox_summary_new(path, folderpath, NULL); if (camel_folder_summary_header_load((CamelFolderSummary *)mbs) != -1) { |