aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-10-11 09:38:50 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-10-11 09:38:50 +0800
commit45532bcee1317e9ee71e2f848abaab70471dbf0a (patch)
treef953fea32407915a7eafd42fc92d4c1e4edf55e6
parent703e62c58711a5d1efa61cdf8d774144bb2ab146 (diff)
downloadgsoc2013-evolution-45532bcee1317e9ee71e2f848abaab70471dbf0a.tar.gz
gsoc2013-evolution-45532bcee1317e9ee71e2f848abaab70471dbf0a.tar.zst
gsoc2013-evolution-45532bcee1317e9ee71e2f848abaab70471dbf0a.zip
** See bug #67170.
2004-10-08 Not Zed <NotZed@Ximian.com> ** See bug #67170. * providers/nntp/camel-nntp-store.c (nntp_store_get_cached_folder_info): compare newsgroup names case sensitively. svn path=/trunk/; revision=27528
-rw-r--r--camel/ChangeLog8
-rw-r--r--camel/providers/nntp/camel-nntp-store.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 5d38ad5f82..e38ff2daea 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,11 @@
+2004-10-08 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #67170.
+
+ * providers/nntp/camel-nntp-store.c
+ (nntp_store_get_cached_folder_info): compare newsgroup names case
+ sensitively.
+
2004-10-05 Jeffrey Stedfast <fejj@novell.com>
* camel-service.c (camel_getaddrinfo): Check msg->result for error
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index 718f9589fe..1d4f43cc52 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -641,8 +641,8 @@ nntp_store_get_cached_folder_info (CamelNNTPStore *store, const char *orig_top,
int toplen = strlen(top);
for (i = 0; (si = camel_store_summary_index ((CamelStoreSummary *) store->summary, i)); i++) {
- if ((subscribed_or_flag || (si->flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED)) &&
- (root_or_flag || g_ascii_strncasecmp (si->path, top, toplen) == 0)) {
+ if ((subscribed_or_flag || (si->flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED))
+ && (root_or_flag || strncmp (si->path, top, toplen) == 0)) {
if (recursive_flag || strchr (si->path + toplen, '.') == NULL) {
/* add the item */
fi = nntp_folder_info_from_store_info(store, FALSE, si);
@@ -657,7 +657,7 @@ nntp_store_get_cached_folder_info (CamelNNTPStore *store, const char *orig_top,
the item we added last, we need to add a portion of this item to
the list as a placeholder */
if (!last ||
- g_ascii_strncasecmp(si->path, last->full_name, strlen(last->full_name)) != 0 ||
+ strncmp(si->path, last->full_name, strlen(last->full_name)) != 0 ||
si->path[strlen(last->full_name)] != '.') {
tmpname = g_strdup(si->path);
*(strchr(tmpname + toplen, '.')) = '\0';