aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-11-11 06:42:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-11-11 06:42:00 +0800
commit219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a (patch)
tree99ccce310a7e007cf0a5213def144e44e6313e01 /camel/providers
parentddeb876285c57a55ac2081048f4288f61dba3a8b (diff)
downloadgsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar.gz
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar.bz2
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar.lz
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar.xz
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.tar.zst
gsoc2013-evolution-219d9bd4a6fb4d9357dae14ee90fb087a9ffc54a.zip
Use the expanded ALL macro as on closer inspection of the RFC, we're not
2004-11-10 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all): Use the expanded ALL macro as on closer inspection of the RFC, we're not allowed to use macros in conjunction with other FETCH items (such as UID in our case). svn path=/trunk/; revision=27888
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap4/camel-imap4-summary.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/camel/providers/imap4/camel-imap4-summary.c b/camel/providers/imap4/camel-imap4-summary.c
index d1d581d690..77023ad7f2 100644
--- a/camel/providers/imap4/camel-imap4-summary.c
+++ b/camel/providers/imap4/camel-imap4-summary.c
@@ -965,6 +965,8 @@ untagged_fetch_all (CamelIMAP4Engine *engine, CamelIMAP4Command *ic, guint32 ind
return -1;
}
+#define IMAP4_ALL "FLAGS INTERNALDATE RFC822.SIZE ENVELOPE"
+
static CamelIMAP4Command *
imap4_summary_fetch_all (CamelFolderSummary *summary, guint32 first, guint32 last)
{
@@ -988,18 +990,10 @@ imap4_summary_fetch_all (CamelFolderSummary *summary, guint32 first, guint32 las
fetch->total = total;
fetch->count = 0;
- /* From rfc2060, Section 6.4.5:
- *
- * The currently defined data items that can be fetched are:
- *
- * ALL Macro equivalent to: (FLAGS INTERNALDATE
- * RFC822.SIZE ENVELOPE)
- **/
-
if (last != 0)
- ic = camel_imap4_engine_queue (engine, folder, "FETCH %u:%u (UID ALL)\r\n", first, last);
+ ic = camel_imap4_engine_queue (engine, folder, "FETCH %u:%u (UID %s)\r\n", first, last, IMAP4_ALL);
else
- ic = camel_imap4_engine_queue (engine, folder, "FETCH %u:* (UID ALL)\r\n", first);
+ ic = camel_imap4_engine_queue (engine, folder, "FETCH %u:* (UID %s)\r\n", first, IMAP4_ALL);
camel_imap4_command_register_untagged (ic, "FETCH", untagged_fetch_all);
ic->user_data = fetch;