diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-22 07:28:20 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-22 07:28:20 +0800 |
commit | cf8db42ff883c5452998b0d8f57c2394abec42db (patch) | |
tree | 030b5f03937bded69cfc167942bbf92561992426 /camel/providers/imap/camel-imap-command.c | |
parent | 16b174cf0eebcb216316674966a46ea29a3bb15b (diff) | |
download | gsoc2013-evolution-cf8db42ff883c5452998b0d8f57c2394abec42db.tar.gz gsoc2013-evolution-cf8db42ff883c5452998b0d8f57c2394abec42db.tar.zst gsoc2013-evolution-cf8db42ff883c5452998b0d8f57c2394abec42db.zip |
As a temporary solution, just printf ("\a"); to make a beep :-)
2002-01-21 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (do_beep): As a temporary solution, just
printf ("\a"); to make a beep :-)
* providers/imap/camel-imap-command.c
(imap_command_strdup_vprintf): Encode the mailbox to UTF-7 here.
* providers/imap/camel-imap-utils.c (imap_parse_list_response):
Decode the mailbox name as we parse the list response.
(imap_mailbox_decode): It's only an illegal mailbox name if it
didn't switch back to US-ASCII mode.
svn path=/trunk/; revision=15421
Diffstat (limited to 'camel/providers/imap/camel-imap-command.c')
-rw-r--r-- | camel/providers/imap/camel-imap-command.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c index 3afb9af82f..6a2382b3c8 100644 --- a/camel/providers/imap/camel-imap-command.c +++ b/camel/providers/imap/camel-imap-command.c @@ -588,12 +588,14 @@ camel_imap_response_extract (CamelImapStore *store, int len = strlen (type), i; char *resp; + len = strlen (type); + for (i = 0; i < response->untagged->len; i++) { resp = response->untagged->pdata[i]; /* Skip "* ", and initial sequence number, if present */ strtoul (resp + 2, &resp, 10); if (*resp == ' ') - resp = imap_next_word (resp); + resp = (char *) imap_next_word (resp); if (!g_strncasecmp (resp, type, len)) break; @@ -741,8 +743,14 @@ imap_command_strdup_vprintf (CamelImapStore *store, const char *fmt, case 'S': case 'F': string = args->pdata[i++]; - if (*p == 'F') - string = imap_namespace_concat (store, string); + if (*p == 'F') { + char *mailbox; + + mailbox = imap_namespace_concat (store, string); + string = imap_mailbox_encode (mailbox, strlen (mailbox)); + g_free (mailbox); + } + if (store->capabilities & IMAP_CAPABILITY_LITERALPLUS) { op += sprintf (op, "{%d+}\r\n%s", strlen (string), string); |