evolution-data-server r9906 - branches/gnome-2-24/camel/providers/imap



Author: sragavan
Date: Mon Jan 12 03:35:45 2009
New Revision: 9906
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9906&view=rev

Log:
2009-01-12  Srinivasa Ragavan  <sragavan novell com>

	* camel-imap-folder.c: (imap_rescan), (imap_update_summary): Fix and
	debug log to tackle one hard to get imap crasher.


Modified:
   branches/gnome-2-24/camel/providers/imap/ChangeLog
   branches/gnome-2-24/camel/providers/imap/camel-imap-folder.c

Modified: branches/gnome-2-24/camel/providers/imap/camel-imap-folder.c
==============================================================================
--- branches/gnome-2-24/camel/providers/imap/camel-imap-folder.c	(original)
+++ branches/gnome-2-24/camel/providers/imap/camel-imap-folder.c	Mon Jan 12 03:35:45 2009
@@ -953,6 +953,13 @@
 			continue;
 
 		info = camel_folder_summary_uid (folder->summary, uid);
+		if (!info) {
+			if (g_getenv("CRASH_IMAP")) { /* Debug logs to tackle on hard to get imap crasher */
+				printf("CRASH: %s: %s", folder->full_name, uid);
+				g_assert(0);
+			} else
+				continue;
+		}
 
 		iinfo = (CamelImapMessageInfo *)info;
 
@@ -3502,6 +3509,8 @@
 		   messages will be filtered even after saw by other software earlier */
 		if ((mi->info.flags & CAMEL_IMAP_MESSAGE_RECENT) != 0 || getenv ("FILTER_RECENT") == NULL)
 			camel_folder_change_info_recent_uid (changes, camel_message_info_uid (mi));
+		printf("NEW: %s: %s(%d)\n", ((CamelMessageInfoBase *)mi)->from, ((CamelMessageInfoBase *)mi)->subject, ((CamelMessageInfoBase *)mi)->refcount);
+
 	}
 
 	g_ptr_array_free (messages, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]