aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-04 18:13:02 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-04 18:13:02 +0800
commit8a1e5f2367b7df07a7d53d57e3f94e826c7b9dea (patch)
tree3c18f987aac4ba55b7ad48e63856205e677b508c /camel/camel-store.c
parentda26534a64a117ab465de1f238db1a67d4ac9ade (diff)
downloadgsoc2013-evolution-8a1e5f2367b7df07a7d53d57e3f94e826c7b9dea.tar.gz
gsoc2013-evolution-8a1e5f2367b7df07a7d53d57e3f94e826c7b9dea.tar.zst
gsoc2013-evolution-8a1e5f2367b7df07a7d53d57e3f94e826c7b9dea.zip
added 'expunge' parameter, easier 'empty trash on exit' call.
2004-02-04 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_sync): added 'expunge' parameter, easier 'empty trash on exit' call. 2004-02-04 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store.c (parse_list_response_as_folder_info): if we can't add the folder to the summary {i.e. duplicate}, then ignore it. See #53836. svn path=/trunk/; revision=24606
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 677c4a9586..8da93702f8 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -62,7 +62,7 @@ static void delete_folder (CamelStore *store, const char *folder_name,
static void rename_folder (CamelStore *store, const char *old_name,
const char *new_name, CamelException *ex);
-static void store_sync (CamelStore *store, CamelException *ex);
+static void store_sync (CamelStore *store, int expunge, CamelException *ex);
static CamelFolderInfo *get_folder_info (CamelStore *store, const char *top,
guint32 flags, CamelException *ex);
static void free_folder_info (CamelStore *store, CamelFolderInfo *tree);
@@ -635,7 +635,7 @@ camel_store_get_junk (CamelStore *store, CamelException *ex)
}
static void
-store_sync (CamelStore *store, CamelException *ex)
+store_sync (CamelStore *store, int expunge, CamelException *ex)
{
if (store->folders) {
GPtrArray *folders;
@@ -659,23 +659,22 @@ store_sync (CamelStore *store, CamelException *ex)
/**
* camel_store_sync:
* @store: a CamelStore
+ * @expunge: do we expunge deleted messages too?
* @ex: a CamelException
*
* Syncs any changes that have been made to the store object and its
* folders with the real store.
**/
void
-camel_store_sync (CamelStore *store, CamelException *ex)
+camel_store_sync(CamelStore *store, int expunge, CamelException *ex)
{
g_return_if_fail (CAMEL_IS_STORE (store));
- CS_CLASS (store)->sync (store, ex);
+ CS_CLASS(store)->sync(store, expunge, ex);
}
-
static CamelFolderInfo *
-get_folder_info (CamelStore *store, const char *top,
- guint32 flags, CamelException *ex)
+get_folder_info (CamelStore *store, const char *top, guint32 flags, CamelException *ex)
{
w(g_warning ("CamelStore::get_folder_info not implemented for `%s'",
camel_type_to_name (CAMEL_OBJECT_GET_TYPE (store))));
@@ -764,8 +763,7 @@ add_special_info (CamelStore *store, CamelFolderInfo *info, const char *name, co
* camel_store_free_folder_info.
**/
CamelFolderInfo *
-camel_store_get_folder_info (CamelStore *store, const char *top,
- guint32 flags, CamelException *ex)
+camel_store_get_folder_info(CamelStore *store, const char *top, guint32 flags, CamelException *ex)
{
CamelFolderInfo *info;