diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-31 05:01:59 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-31 05:01:59 +0800 |
commit | 151fb928c3191fbf37d34e0f35ff242587fbb307 (patch) | |
tree | 811c5c37f11ebf8891ed3dd03dde428afb2e9ad8 /camel/providers/imap/camel-imap-folder.c | |
parent | b7f6c874fd5b630fab571462978029cd306e9f74 (diff) | |
download | gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar.gz gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar.bz2 gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar.lz gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar.xz gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.tar.zst gsoc2013-evolution-151fb928c3191fbf37d34e0f35ff242587fbb307.zip |
Don't wrap printed strings in quotes, makes things messy
2000-08-30 Jeffrey Stedfast <fejj@helixcode.com>
* camel-remote-store.c (remote_send_string): Don't wrap printed
strings in quotes, makes things messy
* providers/imap/camel-imap-folder.c (imap_get_message): Updated
to use the camel_imap_fetch_command
* providers/imap/camel-imap-stream.c (stream_read): Updated to use
camel_imap_fetch_command
* providers/imap/camel-imap-store.c (camel_imap_command_extended):
No longer handles FETCH requests so no longer needs to be
concerned with checking to make sure that server responses are
valid (they have to be).
(camel_imap_fetch_command): New convenience function that handles
all FETCH requests
svn path=/trunk/; revision=5122
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index ce15fd7e97..5744a61584 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -802,9 +802,9 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) else data_item = "RFC822.HEADER"; - status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, - &result, ex, "UID FETCH %s %s", uid, - data_item); + status = camel_imap_fetch_command (CAMEL_IMAP_STORE (folder->parent_store), folder, + &result, ex, "UID FETCH %s %s", uid, + data_item); if (!result || status != CAMEL_IMAP_OK) return NULL; @@ -855,9 +855,9 @@ imap_get_message (CamelFolder *folder, const gchar *uid, CamelException *ex) else data_item = "RFC822.TEXT"; - status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, - &result, ex, "UID FETCH %s %s", uid, - data_item); + status = camel_imap_fetch_command (CAMEL_IMAP_STORE (folder->parent_store), folder, + &result, ex, "UID FETCH %s %s", uid, + data_item); if (!result || status != CAMEL_IMAP_OK) { g_free (header); @@ -1024,6 +1024,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex) summary_specifier = imap_protocol_get_summary_specifier (folder); + /* We use camel_imap_command_extended here because it's safe */ if (num == 1) { status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, &result, ex, "FETCH 1 (%s)", summary_specifier); @@ -1083,7 +1084,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex) for (uid += 4; *uid && (*uid < '0' || *uid > '9'); uid++); /* advance to <uid> */ for (q = uid; *q && *q >= '0' && *q <= '9'; q++); /* find the end of the <uid> */ info->uid = g_strndup (uid, (gint)(q - uid)); - d(fprintf (stderr, "*** info->uid = %s\n", info->uid)); + /*d(fprintf (stderr, "*** info->uid = %s\n", info->uid));*/ /* now lets grab the FLAGS */ if (!(flags = strstr (headers->pdata[i], "FLAGS "))) { @@ -1096,7 +1097,7 @@ imap_get_summary_internal (CamelFolder *folder, CamelException *ex) for (flags += 6; *flags && *flags != '('; flags++); /* advance to <flags> */ for (q = flags; *q && *q != ')'; q++); /* find the end of <flags> */ flags = g_strndup (flags, (gint)(q - flags + 1)); - d(fprintf (stderr, "*** info->flags = %s\n", flags)); + /*d(fprintf (stderr, "*** info->flags = %s\n", flags));*/ /* now we gotta parse for the flags */ info->flags = 0; @@ -1211,6 +1212,7 @@ imap_get_message_info_internal (CamelFolder *folder, guint id, CamelException *e /* we don't have a cached copy, so fetch it */ summary_specifier = imap_protocol_get_summary_specifier (folder); + /* again, we use camel_imap_command_extended here because it's safe to do so */ status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), folder, &result, ex, "FETCH %d (%s)", id, summary_specifier); |