Sync changes before expunge
authorChenthill Palanisamy <pchenthill@novell.com>
Wed, 10 Mar 2010 11:37:52 +0000 (17:07 +0530)
committerChenthill Palanisamy <pchenthill@novell.com>
Wed, 10 Mar 2010 11:37:52 +0000 (17:07 +0530)
camel/providers/imapx/camel-imapx-server.c

index 832c140..66de9e8 100644 (file)
@@ -224,7 +224,7 @@ struct _CamelIMAPXJob {
 
        gint noreply:1;         /* dont wait for reply */
        guint32 type;           /* operation type */
-       gchar pri;              /* the command priority */
+       guint32 pri;            /* the command priority */
        short commands;         /* counts how many commands are outstanding */
 
        CamelFolder *folder;
@@ -3107,6 +3107,8 @@ imapx_job_expunge_start(CamelIMAPXServer *is, CamelIMAPXJob *job)
 {
        CamelIMAPXCommand *ic;
 
+       camel_imapx_server_sync_changes (is, job->folder, job->ex);
+
        /* TODO handle UIDPLUS capability */
        ic = camel_imapx_command_new("EXPUNGE", job->folder->full_name, "EXPUNGE");
        ic->job = job;