aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-19 03:17:17 +0800
committerDan Winship <danw@src.gnome.org>2000-12-19 03:17:17 +0800
commitbebb2583a8fc396f8e894f38471428c405164d37 (patch)
tree7cb797bf3ae561ce1b2095cb466f76cc765dd222 /camel/providers/imap/camel-imap-folder.c
parent984596da67125fdcbcfdc1bc1c4948adc66e2f54 (diff)
downloadgsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar.gz
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar.bz2
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar.lz
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar.xz
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.tar.zst
gsoc2013-evolution-bebb2583a8fc396f8e894f38471428c405164d37.zip
Change the semantics of fmt: Now %S (capital S) means an IMAP "string",
* providers/imap/camel-imap-command.c (camel_imap_command): Change the semantics of fmt: Now %S (capital S) means an IMAP "string", (which can be sent as either a quoted string or a literal). If the server supports LITERAL+, these will be sent as extended literals (which don't require any special escaping). Otherwise they'll be sent as quoted strings (and it now properly deals with " or \ in the string). (imap_command_strdup_vprintf): Utility routine that does the real work for the functionality mentioned above. * providers/imap/camel-imap-utils.c (imap_quote_string): Turns a string into a proper IMAP "quoted string". * providers/imap/camel-imap-store.c: * providers/imap/camel-imap-folder.c: Use %S instead of "%s" where appropriate. svn path=/trunk/; revision=7070
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index c127df73de..ae3fe15822 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -469,7 +469,7 @@ imap_append_message (CamelFolder *folder, CamelMimeMessage *message,
camel_object_unref (CAMEL_OBJECT (crlf_filter));
camel_object_unref (CAMEL_OBJECT (memstream));
- response = camel_imap_command (store, NULL, ex, "APPEND %s%s%s {%d}",
+ response = camel_imap_command (store, NULL, ex, "APPEND %S%s%s {%d}",
folder->full_name, flagstr ? " " : "",
flagstr ? flagstr : "", ba->len);
g_free (flagstr);
@@ -501,7 +501,7 @@ imap_copy_message_to (CamelFolder *source, const char *uid,
CamelImapStore *store = CAMEL_IMAP_STORE (source->parent_store);
CamelImapResponse *response;
- response = camel_imap_command (store, source, ex, "UID COPY %s \"%s\"",
+ response = camel_imap_command (store, source, ex, "UID COPY %s %S",
uid, destination->full_name);
camel_imap_response_free (response);
@@ -521,7 +521,7 @@ imap_move_message_to (CamelFolder *source, const char *uid,
CamelImapStore *store = CAMEL_IMAP_STORE (source->parent_store);
CamelImapResponse *response;
- response = camel_imap_command (store, source, ex, "UID COPY %s \"%s\"",
+ response = camel_imap_command (store, source, ex, "UID COPY %s %S",
uid, destination->full_name);
camel_imap_response_free (response);