From c43aa966cbac71c6e5dbceb55bb172dcc3687bbf Mon Sep 17 00:00:00 2001 From: 9 Date: Mon, 29 Oct 2001 08:24:00 +0000 Subject: Turn off w() -> warnings. 2001-10-29 * 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 --- camel/providers/imap/camel-imap-message-cache.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'camel/providers/imap/camel-imap-message-cache.c') 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) { -- cgit v1.2.3