diff options
author | Not Zed <NotZed@Ximian.com> | 2002-01-30 13:14:48 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-01-30 13:14:48 +0800 |
commit | b894c24f03beeaaeb947676f95c05473ee7691d4 (patch) | |
tree | e940ee60ed72b74e034003a2d44b5bf9d3632852 /camel/providers/pop3/camel-pop3-provider.c | |
parent | 22d1017461bcf5c16846721fd5106abff3f7689b (diff) | |
download | gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar.gz gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar.bz2 gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar.lz gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar.xz gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.tar.zst gsoc2013-evolution-b894c24f03beeaaeb947676f95c05473ee7691d4.zip |
Changed name from "NT Login" to simply "Login".
2002-01-30 Not Zed <NotZed@Ximian.com>
* camel-sasl-login.c: Changed name from "NT Login" to simply
"Login".
* providers/pop3/*: Entirely new pop implmentation, supporting
pipelining.
2002-01-29 Not Zed <NotZed@Ximian.com>
* camel-data-cache.c (free_busy): We dont want to unref the
stream, instead, stop listening to the finalised events, and free
the path only.
2002-01-25 Not Zed <NotZed@Ximian.com>
* camel-data-cache.c (stream_finalised): Remove the object from
the busy_stream hashtable, not the busy_path hashtable.
svn path=/trunk/; revision=15521
Diffstat (limited to 'camel/providers/pop3/camel-pop3-provider.c')
-rw-r--r-- | camel/providers/pop3/camel-pop3-provider.c | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/camel/providers/pop3/camel-pop3-provider.c b/camel/providers/pop3/camel-pop3-provider.c index 9e7a022482..85ff1f0865 100644 --- a/camel/providers/pop3/camel-pop3-provider.c +++ b/camel/providers/pop3/camel-pop3-provider.c @@ -4,6 +4,7 @@ /* * Authors : * Dan Winship <danw@ximian.com> + * Michael Zucchi <notzed@ximian.com> * * Copyright (C) 2000 Ximian, Inc. (www.ximian.com) * @@ -30,6 +31,7 @@ #include "camel-provider.h" #include "camel-session.h" #include "camel-url.h" +#include "camel-sasl.h" CamelProviderConfEntry pop3_conf_entries[] = { { CAMEL_PROVIDER_CONF_SECTION_START, NULL, NULL, @@ -45,7 +47,7 @@ CamelProviderConfEntry pop3_conf_entries[] = { }; static CamelProvider pop3_provider = { - "pop", + "pop3", N_("POP"), @@ -84,32 +86,22 @@ CamelServiceAuthType camel_pop3_apop_authtype = { TRUE }; -#ifdef HAVE_KRB4 -CamelServiceAuthType camel_pop3_kpop_authtype = { - "Kerberos 4 (KPOP)", - - N_("This will connect to the POP server and use Kerberos 4 " - "to authenticate to it."), - - "+KPOP", - FALSE -}; -#endif - void camel_provider_module_init (CamelSession *session) { - pop3_provider.object_types[CAMEL_PROVIDER_STORE] = - camel_pop3_store_get_type (); - pop3_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal); + CamelServiceAuthType *auth; + + pop3_provider.object_types[CAMEL_PROVIDER_STORE] = camel_pop3_store_get_type(); + pop3_provider.service_cache = g_hash_table_new(camel_url_hash, camel_url_equal); pop3_provider.url_hash = camel_url_hash; pop3_provider.url_equal = camel_url_equal; - -#ifdef HAVE_KRB4 - pop3_provider.authtypes = g_list_prepend (camel_remote_store_authtype_list (), &camel_pop3_kpop_authtype); -#endif - pop3_provider.authtypes = g_list_prepend (pop3_provider.authtypes, &camel_pop3_apop_authtype); - pop3_provider.authtypes = g_list_prepend (pop3_provider.authtypes, &camel_pop3_password_authtype); - camel_session_register_provider (session, &pop3_provider); + pop3_provider.authtypes = g_list_concat(camel_remote_store_authtype_list(), camel_sasl_authtype_list(FALSE)); + auth = camel_sasl_authtype("LOGIN"); + if (auth) + pop3_provider.authtypes = g_list_prepend(pop3_provider.authtypes, auth); + pop3_provider.authtypes = g_list_prepend(pop3_provider.authtypes, &camel_pop3_apop_authtype); + pop3_provider.authtypes = g_list_prepend(pop3_provider.authtypes, &camel_pop3_password_authtype); + + camel_session_register_provider(session, &pop3_provider); } |