diff -Naur evolution-data-server-2.28.2-orig/camel/camel-folder-summary.c evolution-data-server-2.28.2/camel/camel-folder-summary.c
--- evolution-data-server-2.28.2-orig/camel/camel-folder-summary.c	2009-12-12 22:07:22.000000000 +0930
+++ evolution-data-server-2.28.2/camel/camel-folder-summary.c	2010-01-12 11:45:41.000000000 +0930
@@ -96,7 +96,7 @@
 
 #define EXTRACT_FIRST_STRING(val) len=strtoul (part, &part, 10); if (*part) part++; val=g_strndup (part, len); part+=len;
 #define EXTRACT_STRING(val) if (*part) part++; len=strtoul (part, &part, 10); if (*part) part++; val=g_strndup (part, len); part+=len;
-#define EXTRACT_FIRST_DIGIT(val) val=strtoul (part, &part, 10);
+#define EXTRACT_FIRST_DIGIT(val) if (part) {val=strtoul (part, &part, 10);} else { val = 0; }
 #define EXTRACT_DIGIT(val) if (*part && *part == ' ') part++; val=strtoul (part, &part, 10);
 
 /* trivial lists, just because ... */
diff -Naur evolution-data-server-2.28.2-orig/camel/providers/imap/camel-imap-summary.c evolution-data-server-2.28.2/camel/providers/imap/camel-imap-summary.c
--- evolution-data-server-2.28.2-orig/camel/providers/imap/camel-imap-summary.c	2009-12-12 22:07:22.000000000 +0930
+++ evolution-data-server-2.28.2/camel/providers/imap/camel-imap-summary.c	2010-01-12 10:26:52.000000000 +0930
@@ -42,7 +42,7 @@
 
 #define CAMEL_IMAP_SUMMARY_VERSION (3)
 
-#define EXTRACT_FIRST_DIGIT(val) val=strtoul (part, &part, 10);
+#define EXTRACT_FIRST_DIGIT(val) if (part) {val=strtoul (part, &part, 10);} else { val = 0; }
 #define EXTRACT_DIGIT(val) if (*part) part++; val=strtoul (part, &part, 10);
 
 static gint summary_header_load (CamelFolderSummary *, FILE *);
