Set server_flags after APPENDUID; don't send them to the server again.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 29 Jun 2010 16:23:57 +0000 (17:23 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 29 Jun 2010 16:23:57 +0000 (17:23 +0100)
This is just silly....

Starting command (active=1, literal) A00452 APPEND outgoing (\SEEN) {551+}
Starting command (active=1,) A00454 SELECT outgoing
Starting command (active=1,) A00453 UID STORE 14443 +FLAGS.SILENT (\SEEN)

camel/providers/imapx/camel-imapx-server.c

index e04a20a..d35d7c9 100644 (file)
@@ -3140,7 +3140,10 @@ imapx_command_append_message_done (CamelIMAPXServer *is, CamelIMAPXCommand *ic)
 
                                /* should we update the message count ? */
                                camel_folder_summary_add (job->folder->summary, mi);
-
+                               imapx_set_message_info_flags_for_new_message (mi, 
+                                                                             ((CamelMessageInfoBase *)job->u.append_message.info)->flags,
+                                                                             ((CamelMessageInfoBase *)job->u.append_message.info)->user_flags,
+                                                                             job->folder);
                                changes = camel_folder_change_info_new ();
                                camel_folder_change_info_add_uid (changes, mi->uid);
                                camel_folder_changed (job->folder, changes);