[evolution-data-server] Bug #664186 - Maildir scan checks incorrectly for folder name prefix
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #664186 - Maildir scan checks incorrectly for folder name prefix
- Date: Wed, 7 Mar 2012 18:32:01 +0000 (UTC)
commit ffd8689da2f2c3c87f12c196695558c49e885382
Author: Milan Crha <mcrha redhat com>
Date: Wed Mar 7 19:30:54 2012 +0100
Bug #664186 - Maildir scan checks incorrectly for folder name prefix
camel/providers/local/camel-maildir-store.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/camel/providers/local/camel-maildir-store.c b/camel/providers/local/camel-maildir-store.c
index 3432f0a..d6ce234 100644
--- a/camel/providers/local/camel-maildir-store.c
+++ b/camel/providers/local/camel-maildir-store.c
@@ -607,10 +607,14 @@ scan_dirs (CamelStore *store,
short_name++;
if ((g_ascii_strcasecmp ((*topfi)->full_name, "Inbox") != 0
- && !g_str_has_prefix (full_name, (*topfi)->full_name))
+ && (!g_str_has_prefix (full_name, (*topfi)->full_name) ||
+ (full_name[strlen((*topfi)->full_name)] != '\0' &&
+ full_name[strlen((*topfi)->full_name)] != '/')))
|| (!can_inbox_sibling
&& g_ascii_strcasecmp ((*topfi)->full_name, "Inbox") == 0
- && !g_str_has_prefix (full_name, (*topfi)->full_name))) {
+ && !g_str_has_prefix (full_name, (*topfi)->full_name)) ||
+ (full_name[strlen((*topfi)->full_name)] != '\0' &&
+ full_name[strlen((*topfi)->full_name)] != '/')) {
g_free (full_name);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]