+2004-12-09 Jeffrey Stedfast <fejj@novell.com>
+
+ * providers/imap4/camel-imap4-folder.c (imap4_append_message):
+ Don't bother sending UID APPEND if the caller doesn't care about
+ appended_uid.
+
2004-12-13 Not Zed <NotZed@Ximian.com>
* tests/lib/Makefile.am: put the test-provider stuff back in.
retry:
- if (engine->capa & CAMEL_IMAP4_CAPABILITY_UIDPLUS)
+ if (appended_uid && engine->capa & CAMEL_IMAP4_CAPABILITY_UIDPLUS)
ic = camel_imap4_engine_queue (engine, NULL, "UID APPEND %F%s%s %L\r\n", folder, flags, date, message);
else
ic = camel_imap4_engine_queue (engine, NULL, "APPEND %F%s%s %L\r\n", folder, flags, date, message);
switch (ic->result) {
case CAMEL_IMAP4_RESULT_OK:
- if (!(engine->capa & CAMEL_IMAP4_CAPABILITY_UIDPLUS))
- break;
-
- if (!appended_uid)
+ if (!appended_uid || !(engine->capa & CAMEL_IMAP4_CAPABILITY_UIDPLUS))
break;
for (i = 0; i < ic->resp_codes->len; i++) {