diff options
author | Dan Winship <danw@src.gnome.org> | 2000-10-03 04:14:57 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-10-03 04:14:57 +0800 |
commit | 853d2b99ff4a6509cad65e893a84bb00bae4f669 (patch) | |
tree | b50681527a971284cb48fea4879397c191cd2db3 /camel/camel-remote-store.c | |
parent | bfe2227dd0f527b2c8da97d73ed2361a564f08bd (diff) | |
download | gsoc2013-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/camel-remote-store.c')
-rw-r--r-- | camel/camel-remote-store.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c index 601d5bc4c1..5d1b762fbb 100644 --- a/camel/camel-remote-store.c +++ b/camel/camel-remote-store.c @@ -218,13 +218,8 @@ remote_connect (CamelService *service, CamelException *ex) if (service->url->port) port = service->url->port; - else { - CamelProvider *prov = camel_service_get_provider (service); - - port = prov->default_ports[CAMEL_PROVIDER_STORE]; - g_assert (port); /* a remote service MUST define a valid default port */ - } - + else + port = store->default_port; sin.sin_port = htons (port); memcpy (&sin.sin_addr, h->h_addr, sizeof (sin.sin_addr)); |