From 338e936539204e42bbb0a09f30eba984fa939ebc Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 3 Aug 2002 00:45:15 +0000 Subject: Fixes bug #26237. 2002-08-02 Jeffrey Stedfast 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 --- camel/providers/imap/camel-imap-utils.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'camel/providers/imap/camel-imap-utils.c') 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; -- cgit v1.2.3