aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-local.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-29 06:38:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-29 06:38:53 +0800
commitdf8634ddc8aedeeb471e1e1a6171a8ea102db61d (patch)
tree65b1422d037c7367864ab25a3ccf281b93156e40 /mail/mail-local.c
parent61e47e195ea3084227b2a986e055bfdb7e18444b (diff)
downloadgsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar.gz
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar.bz2
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar.lz
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar.xz
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.tar.zst
gsoc2013-evolution-df8634ddc8aedeeb471e1e1a6171a8ea102db61d.zip
Setup the url_hash and url_equal functions for the local provider.
2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * mail-local.c (mail_local_provider_init): Setup the url_hash and url_equal functions for the local provider. * mail-account-gui.c (mail_account_gui_save): Add code here to check to make sure that the Drafts and Sent folders are pointing to valid urls. This is kinda nasty and only really solves the case where the user changes, say, his imap server or something. Unfortunately we still have the problem where if account A's sent/drafts folders point to account B's store and the user changes the url for account B. * mail-config.c (mail_config_get_account_by_source_url): Use Camel to compare the urls rather than using e_url_equal which does all sorts of funky shit that may not work in every case. svn path=/trunk/; revision=13238
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r--mail/mail-local.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c
index e0e2c8792c..6af58a87e2 100644
--- a/mail/mail-local.c
+++ b/mail/mail-local.c
@@ -908,6 +908,8 @@ mail_local_provider_init (void)
local_provider.object_types[CAMEL_PROVIDER_STORE] = MAIL_LOCAL_STORE_TYPE;
local_provider.service_cache = g_hash_table_new (non_hash, non_equal);
+ local_provider.url_hash = non_hash;
+ local_provider.url_equal = non_equal;
camel_session_register_provider (session, &local_provider);
}