Index: camel/providers/local/camel-mbox-summary.c
===================================================================
--- camel/providers/local/camel-mbox-summary.c	(revision 9164)
+++ camel/providers/local/camel-mbox-summary.c	(working copy)
@@ -303,7 +303,7 @@ summary_header_to_db (CamelFolderSummary
 	fir = ((CamelFolderSummaryClass *)camel_mbox_summary_parent)->summary_header_to_db (s, ex);
 	if (fir) {
 		tmp = fir->bdata;
-		fir->bdata = g_strdup_printf ("%s %d %d", tmp ? tmp : "", CAMEL_MBOX_SUMMARY_VERSION, mbs->folder_size);
+		fir->bdata = g_strdup_printf ("%s %d %d", tmp ? tmp : "", CAMEL_MBOX_SUMMARY_VERSION, (int) mbs->folder_size);
 		g_free (tmp);
 	}
 	
Index: camel/providers/local/ChangeLog
===================================================================
--- camel/providers/local/ChangeLog	(revision 9164)
+++ camel/providers/local/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-07-21  Milan Crha  <mcrha@redhat.com>
+
+	** Part of fix for bug #544031
+
+	* camel-mbox-summary.c: (summary_header_to_db):
+	Compiler warning cleanup.
+
 2008-07-18  Matthew Barnes  <mbarnes@redhat.com>
 
 	* camel-local-summary.c: #include "camel-string-utils.h"
Index: camel/camel-vee-folder.c
===================================================================
--- camel/camel-vee-folder.c	(revision 9164)
+++ camel/camel-vee-folder.c	(working copy)
@@ -881,7 +881,7 @@ vee_folder_remove_folder(CamelVeeFolder 
 							if (n == 1) {
 								CamelMessageInfo *tinfo;
 								g_hash_table_remove(unmatched_uids, oldkey);
-								if (tinfo = (CamelMessageInfo *) vee_folder_add_uid(folder_unmatched, source, oldkey+8, hash)) {
+								if ((tinfo = (CamelMessageInfo *) vee_folder_add_uid(folder_unmatched, source, oldkey+8, hash)) != NULL) {
 									camel_message_info_free (tinfo);
 									camel_folder_change_info_add_uid(folder_unmatched->changes, oldkey);
 								}
Index: camel/ChangeLog
===================================================================
--- camel/ChangeLog	(revision 9164)
+++ camel/ChangeLog	(working copy)
@@ -1,3 +1,11 @@
+2008-07-21  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #544031
+
+	* camel-vee-folder.c: (vee_folder_remove_folder):
+	* camel-folder-summary.c: (camel_folder_summary_migrate_infos),
+	(content_info_to_db): Compiler warnings cleanup.
+
 2008-07-22  Sankar P  <psankar@novell.com>
 
 	* camel-folder-search.c (check_header), (search_system_flag):
Index: camel/camel-folder-summary.c
===================================================================
--- camel/camel-folder-summary.c	(revision 9164)
+++ camel/camel-folder-summary.c	(working copy)
@@ -1046,7 +1046,7 @@ camel_folder_summary_migrate_infos(Camel
 
 	if (s->summary_path == NULL) {
 		g_warning ("No summary path set. Unable to migrate\n");
-		return NULL;
+		return -1;
 	}
 
 	in = g_fopen(s->summary_path, "rb");
@@ -3198,22 +3198,22 @@ content_info_to_db(CamelFolderSummary *s
 	ct = ci->type;
 	if (ct) {
 		if (ct->type)
-			g_string_append_printf (str, " %d-%s", strlen (ct->type), ct->type);
+			g_string_append_printf (str, " %d-%s", (int) strlen (ct->type), ct->type);
 		else 
 			g_string_append_printf (str, " 0-");
 		if (ct->subtype)
-			g_string_append_printf (str, " %d-%s", strlen (ct->subtype), ct->subtype);
+			g_string_append_printf (str, " %d-%s", (int) strlen (ct->subtype), ct->subtype);
 		else 
 			g_string_append_printf (str, " 0-");
 		g_string_append_printf (str, " %d", my_list_size((struct _node **)&ct->params));
 		hp = ct->params;
 		while (hp) {
 			if (hp->name)
-				g_string_append_printf (str, " %d-%s", strlen(hp->name), hp->name);
+				g_string_append_printf (str, " %d-%s", (int)strlen(hp->name), hp->name);
 			else 
 				g_string_append_printf (str, " 0-");
 			if (hp->value)
-				g_string_append_printf (str, " %d-%s", strlen (hp->value), hp->value);
+				g_string_append_printf (str, " %d-%s", (int)strlen (hp->value), hp->value);
 			else
 				g_string_append_printf (str, " 0-");
 			hp = hp->next;
@@ -3225,15 +3225,15 @@ content_info_to_db(CamelFolderSummary *s
 	}
 
 	if (ci->id)
-		g_string_append_printf (str, " %d-%s", strlen (ci->id), ci->id);
+		g_string_append_printf (str, " %d-%s", (int)strlen (ci->id), ci->id);
 	else 
 		g_string_append_printf (str, " 0-");
 	if (ci->description)
-		g_string_append_printf (str, " %d-%s", strlen (ci->description), ci->description);
+		g_string_append_printf (str, " %d-%s", (int)strlen (ci->description), ci->description);
 	else
 		g_string_append_printf (str, " 0-");
 	if (ci->encoding)
-		g_string_append_printf (str, " %d-%s", strlen (ci->encoding), ci->encoding);
+		g_string_append_printf (str, " %d-%s", (int)strlen (ci->encoding), ci->encoding);
 	else
 		g_string_append_printf (str, " 0-");
 	g_string_append_printf (str, " %u", ci->size);
