cf4d2972e7e65d9002884ab361ad1e1c52536823
diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
index 6a7a62c..9500078 100644
--- a/camel/camel-vee-folder.c
+++ b/camel/camel-vee-folder.c
@@ -1421,7 +1421,7 @@ folder_changed_remove_uid (CamelFolder *sub, const gchar *uid, const gchar hash[
 				}
 			} else {
 				if (vee_folder_add_uid_test (folder_unmatched, sub, uid, hash))
-					camel_folder_change_info_add_uid (folder_unmatched->changes, oldkey);
+					camel_folder_change_info_add_uid (folder_unmatched->changes, vuid);
 			}
 		} else {
 			if (g_hash_table_lookup_extended (unmatched_uids, vuid, (gpointer *)&oldkey, &oldval)) {
