aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-03 04:14:57 +0800
committerDan Winship <danw@src.gnome.org>2000-10-03 04:14:57 +0800
commit853d2b99ff4a6509cad65e893a84bb00bae4f669 (patch)
treeb50681527a971284cb48fea4879397c191cd2db3 /camel/providers/imap
parentbfe2227dd0f527b2c8da97d73ed2361a564f08bd (diff)
downloadgsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.gz
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.tar.zst
gsoc2013-evolution-853d2b99ff4a6509cad65e893a84bb00bae4f669.zip
Remove default_ports.
* camel-provider.h: Remove default_ports. * camel-remote-store.c (remote_connect): Get default_port from CamelRemoteStore rather than CamelProvider. * providers/{imap,nntp,pop3}/camel-*-store.c: Initialize CamelRemoteStore::default_port * providers/*/camel-*-provider.c: Remove default_ports. svn path=/trunk/; revision=5669
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-provider.c1
-rw-r--r--camel/providers/imap/camel-imap-store.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-provider.c b/camel/providers/imap/camel-imap-provider.c
index a0a6279340..21452d5cee 100644
--- a/camel/providers/imap/camel-imap-provider.c
+++ b/camel/providers/imap/camel-imap-provider.c
@@ -45,7 +45,6 @@ static CamelProvider imap_provider = {
CAMEL_PROVIDER_IS_REMOTE | CAMEL_PROVIDER_IS_SOURCE | CAMEL_PROVIDER_IS_STORAGE,
{ 0, 0 },
- { 143, 0 },
NULL
};
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index eab33b308f..dcb3782e89 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -100,12 +100,15 @@ static void
camel_imap_store_init (gpointer object, gpointer klass)
{
CamelService *service = CAMEL_SERVICE (object);
+ CamelRemoteStore *remote_store = CAMEL_REMOTE_STORE (object);
CamelImapStore *imap_store = CAMEL_IMAP_STORE (object);
service->url_flags |= (CAMEL_SERVICE_URL_NEED_USER |
CAMEL_SERVICE_URL_NEED_HOST |
CAMEL_SERVICE_URL_ALLOW_PATH |
CAMEL_SERVICE_URL_ALLOW_AUTH);
+
+ remote_store->default_port = 143;
imap_store->dir_sep = NULL;
imap_store->current_folder = NULL;