diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-09-23 06:35:10 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-09-23 06:35:10 +0800 |
commit | 0960633750653e6192986b3657eaf051cdf62174 (patch) | |
tree | 7e67e77382a9673886c439962476642d40a0af32 /camel/providers/imap/camel-imap-utils.c | |
parent | b41b85209fa0c88142a77b719041dcd101876f1d (diff) | |
download | gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar.gz gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar.bz2 gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar.lz gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar.xz gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.tar.zst gsoc2013-evolution-0960633750653e6192986b3657eaf051cdf62174.zip |
Again...wrap the folder names in quotes
2000-09-22 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c
(imap_get_message_count_internal): Again...wrap the folder names
in quotes
* providers/imap/camel-imap-store.c (imap_folder_exists): Wrap the
mailbox name in the LIST command in quotes just in case the folder
has spaces in the name.
(imap_create): Again, wrap folder name in quotes.
(check_current_folder): Same...
* providers/imap/camel-imap-utils.c (imap_parse_list_response):
Update to unquote mailbox if it's quoted (allows us to get folders
with spaces in the name).
svn path=/trunk/; revision=5556
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.c')
-rw-r--r-- | camel/providers/imap/camel-imap-utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index 8fdc4fb5b4..925ae13891 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -36,13 +36,13 @@ char * imap_next_word (char *buf) { char *word; - + /* skip over current word */ for (word = buf; *word && *word != ' '; word++); - + /* skip over white space */ for ( ; *word && *word == ' '; word++); - + return word; } @@ -92,6 +92,7 @@ imap_parse_list_response (char *buf, char *namespace, char **flags, char **sep, word = imap_next_word (word); *folder = g_strdup (word); g_strstrip (*folder); + string_unquote (*folder); /* chop out the folder prefix */ if (*namespace && !strncmp (*folder, namespace, strlen (namespace))) { |