aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-message-cache.c
diff options
context:
space:
mode:
author9 <NotZed@Ximian.com>2001-10-29 16:24:00 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-29 16:24:00 +0800
commitc43aa966cbac71c6e5dbceb55bb172dcc3687bbf (patch)
tree12a9b86802e1a65afc9049e6d5d81e114b26182e /camel/providers/imap/camel-imap-message-cache.c
parentfa9505a288ebeab16883eb940bd1418f176fc426 (diff)
downloadgsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar.gz
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar.bz2
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar.lz
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar.xz
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.tar.zst
gsoc2013-evolution-c43aa966cbac71c6e5dbceb55bb172dcc3687bbf.zip
Turn off w() -> warnings.
2001-10-29 <NotZed@Ximian.com> * camel-mime-utils.c: Turn off w() -> warnings. * providers/imap/camel-imap-store.c (rename_folder): Also rename the message cache. (rename_folder): Fix subscribed folders table with rename(s). * providers/imap/camel-imap-folder.c (imap_rename): Implement, rename the cache dir pointer. * providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_set_path): New method to set the path used by a message cache. svn path=/trunk/; revision=14327
Diffstat (limited to 'camel/providers/imap/camel-imap-message-cache.c')
-rw-r--r--camel/providers/imap/camel-imap-message-cache.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-message-cache.c b/camel/providers/imap/camel-imap-message-cache.c
index ab5d125d6e..e5cddf9bae 100644
--- a/camel/providers/imap/camel-imap-message-cache.c
+++ b/camel/providers/imap/camel-imap-message-cache.c
@@ -209,6 +209,20 @@ camel_imap_message_cache_max_uid (CamelImapMessageCache *cache)
return cache->max_uid;
}
+/**
+ * camel_imap_message_cache_set_path:
+ * @cache:
+ * @path:
+ *
+ * Set the path used for the message cache.
+ **/
+void
+camel_imap_message_cache_set_path (CamelImapMessageCache *cache, const char *path)
+{
+ g_free(cache->path);
+ cache->path = g_strdup(path);
+}
+
static void
stream_finalize (CamelObject *stream, gpointer event_data, gpointer user_data)
{