From 076b83ed4fceedb7758f546719ea746737dacbe2 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 4 Oct 2000 21:32:32 +0000 Subject: use "nntp:" instead of "news:" since "news:" urls aren't supposed to have 2000-10-04 Chris Toshok * providers/nntp/camel-nntp-store.c (nntp_store_get_folder_info): use "nntp:" instead of "news:" since "news:" urls aren't supposed to have host/user/port info in them. also, if there's a user defined in the url, put it in the urls for our folders. svn path=/trunk/; revision=5717 --- camel/providers/nntp/camel-nntp-store.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'camel/providers/nntp') diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index d51e3b2cf6..b7466f7baf 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -46,6 +46,8 @@ #define NNTP_PORT 119 +#define DUMP_EXTENSIONS + static CamelRemoteStoreClass *remote_store_class = NULL; static CamelServiceClass *service_class = NULL; @@ -354,7 +356,10 @@ nntp_store_get_folder_info (CamelStore *store, const char *top, fi = g_new0 (CamelFolderInfo, 1); fi->name = g_strdup (names->pdata[i]); fi->full_name = g_strdup (names->pdata[i]); - fi->url = g_strdup_printf ("news://%s/%s", url->host, (char *)names->pdata[i]); + fi->url = g_strdup_printf ("nntp://%s%s%s/%s", + url->user ? url->user : "", + url->user ? "@" : "", + url->host, (char *)names->pdata[i]); /* FIXME */ fi->message_count = fi->unread_message_count = -1; @@ -374,7 +379,7 @@ nntp_store_get_folder_info (CamelStore *store, const char *top, fi = g_new0 (CamelFolderInfo, 1); fi->name = g_strdup (top); fi->full_name = g_strdup (top); - fi->url = g_strdup_printf ("news://%s/%s", url->host, top); + fi->url = g_strdup_printf ("nntp://%s/%s", url->host, top); /* FIXME */ fi->message_count = fi->unread_message_count = -1; -- cgit v1.2.3