--- /home/gad/Proyectos/temp/evolution-exchange-2.24.1.1/mail/mail-stub-exchange.c	2008-10-13 10:44:23.000000000 +0200
+++ mail/mail-stub-exchange.c	2008-11-18 12:03:47.000000000 +0100
@@ -1213,11 +1213,12 @@ sync_deletions (MailStubExchange *mse, M
 		g_warning ("synced_deleted: %d", status);
 
 	/* Clear out the remaining messages in mfld */
+	highest_unverified_index = mfld->messages->len - 1;
 	while (highest_unverified_index > -1) {
 		mfld->deleted_count++;
 		mmsg = mfld->messages->pdata[highest_unverified_index--];
 		message_removed (stub, mfld, mmsg->href);
-		changes = TRUE;
+		changes = TRUE;	
 	}
 
 	if (changes)
