aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-03 08:45:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-03 08:45:15 +0800
commit338e936539204e42bbb0a09f30eba984fa939ebc (patch)
tree1d80cf4e6104fa507b6738f0d26c32bae0dee7e1 /camel/providers/imap/camel-imap-utils.c
parent6aa2b61cc756334a5ea43d41c0f5883b41d09f46 (diff)
downloadgsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar.gz
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar.bz2
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar.lz
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar.xz
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.tar.zst
gsoc2013-evolution-338e936539204e42bbb0a09f30eba984fa939ebc.zip
Fixes bug #26237.
2002-08-02 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #26237. * providers/imap/camel-imap-command.c (imap_command_strdup_vprintf): Don't prepend any namespace shit in the %F case. * providers/imap/camel-imap-utils.c (imap_parse_list_response): Don't strip off the namespace. svn path=/trunk/; revision=17693
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.c')
-rw-r--r--camel/providers/imap/camel-imap-utils.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index 753e341316..48cadf02d2 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -347,7 +347,6 @@ imap_parse_list_response (CamelImapStore *store, const char *buf, int *flags, ch
if (folder) {
char *astring, *mailbox;
- size_t nlen;
/* get the folder name */
word = imap_next_word (word);
@@ -360,21 +359,7 @@ imap_parse_list_response (CamelImapStore *store, const char *buf, int *flags, ch
if (!mailbox)
return FALSE;
- nlen = strlen (store->namespace);
-
- if (!strncmp (mailbox, store->namespace, nlen)) {
- /* strip off the namespace */
- if (nlen > 0)
- memmove (mailbox, mailbox + nlen, (len - nlen) + 1);
- *folder = mailbox;
- } else if (!g_strcasecmp (mailbox, "INBOX")) {
- *folder = mailbox;
- } else {
- g_warning ("IMAP folder name \"%s\" does not begin with \"%s\"", mailbox, store->namespace);
- *folder = mailbox;
- }
-
- return *folder != NULL;
+ *folder = mailbox;
}
return TRUE;