The UIDPLUS extension doesn't give a "UID APPEND" command, instead it just
authorJeffrey Stedfast <fejj@novell.com>
Mon, 23 May 2005 15:24:36 +0000 (15:24 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Mon, 23 May 2005 15:24:36 +0000 (15:24 +0000)
2005-05-23  Jeffrey Stedfast  <fejj@novell.com>

* camel-imap4-folder.c (imap4_append_message): The UIDPLUS
extension doesn't give a "UID APPEND" command, instead it just
provides the APPENDUID RESP-CODE, so no need to conditionalise the
command-creation code here. Simply always send "APPEND ..."

camel/providers/imap4/ChangeLog
camel/providers/imap4/camel-imap4-folder.c

index 2bfcf97..f1ea7f0 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-23  Jeffrey Stedfast  <fejj@novell.com>
+
+       * camel-imap4-folder.c (imap4_append_message): The UIDPLUS
+       extension doesn't give a "UID APPEND" command, instead it just
+       provides the APPENDUID RESP-CODE, so no need to conditionalise the
+       command-creation code here. Simply always send "APPEND ..."
+
 2005-03-11  Jeffrey Stedfast  <fejj@novell.com>
 
        * camel-imap4-folder.c (imap4_sync): Don't try to EXPUNGE in
index b6a3ee8..38a3367 100644 (file)
@@ -974,10 +974,7 @@ imap4_append_message (CamelFolder *folder, CamelMimeMessage *message,
        
  retry:
        
-       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);
+       ic = camel_imap4_engine_queue (engine, NULL, "APPEND %F%s%s %L\r\n", folder, flags, date, message);
        
        while ((id = camel_imap4_engine_iterate (engine)) < ic->id && id != -1)
                ;