diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-15 11:08:47 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-15 11:08:47 +0800 |
commit | bb596fc991701c32cae58abd14c1f275f8a4e8cb (patch) | |
tree | 1560bc86c8d65645cd8a3ae1e2f4fb61bb2e042b /camel/providers/pop3/camel-pop3-provider.c | |
parent | 369d9ddc67a8bf40651e1dbe95d1b6a45996d71c (diff) | |
download | gsoc2013-evolution-bb596fc991701c32cae58abd14c1f275f8a4e8cb.tar.gz gsoc2013-evolution-bb596fc991701c32cae58abd14c1f275f8a4e8cb.tar.zst gsoc2013-evolution-bb596fc991701c32cae58abd14c1f275f8a4e8cb.zip |
Check to see if we are using "pops" and then set the appropriate SSL
2001-03-14 Jeffrey Stedfast <fejj@ximian.com>
* providers/pop3/camel-pop3-store.c (pop3_connect): Check to see
if we are using "pops" and then set the appropriate SSL settings.
* providers/pop3/libcamelpop3.urls: Add "pops"
* providers/pop3/camel-pop3-provider.c: Defined the pops provider.
(camel_provider_module_init): Register the pops provider.
svn path=/trunk/; revision=8723
Diffstat (limited to 'camel/providers/pop3/camel-pop3-provider.c')
-rw-r--r-- | camel/providers/pop3/camel-pop3-provider.c | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/camel/providers/pop3/camel-pop3-provider.c b/camel/providers/pop3/camel-pop3-provider.c index 5af0dad73c..e2669fc703 100644 --- a/camel/providers/pop3/camel-pop3-provider.c +++ b/camel/providers/pop3/camel-pop3-provider.c @@ -48,13 +48,45 @@ static CamelProvider pop3_provider = { NULL }; +#if defined (HAVE_NSS) || defined (HAVE_OPENSSL) +static CamelProvider pops_provider = { + "pops", + N_("Secure POP"), + + N_("For connecting to POP servers over an SSL connection. The POP " + "protocol can also be used to retrieve mail from certain web " + "mail providers and proprietary email systems."), + + "mail", + + CAMEL_PROVIDER_IS_REMOTE | CAMEL_PROVIDER_IS_SOURCE, + + CAMEL_URL_NEED_USER | CAMEL_URL_NEED_HOST | CAMEL_URL_ALLOW_AUTH, + + { 0, 0 }, + + NULL +}; +#endif + void camel_provider_module_init (CamelSession *session) { pop3_provider.object_types[CAMEL_PROVIDER_STORE] = - camel_pop3_store_get_type(); - + camel_pop3_store_get_type (); +#if defined (HAVE_NSS) || defined (HAVE_OPENSSL) + pops_provider.object_types[CAMEL_PROVIDER_STORE] = + camel_pop3_store_get_type (); +#endif + pop3_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal); +#if defined (HAVE_NSS) || defined (HAVE_OPENSSL) + pops_provider.service_cache = g_hash_table_new (camel_url_hash, camel_url_equal); +#endif + camel_session_register_provider (session, &pop3_provider); +#if defined (HAVE_NSS) || defined (HAVE_OPENSSL) + camel_session_register_provider (session, &pops_provider); +#endif } |