evolution-data-server r9226 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi



Author: jjohnny
Date: Wed Jul 30 08:50:55 2008
New Revision: 9226
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9226&view=rev

Log:
Wrapped MAPI property array dumps under camel_debug. export CAMEL_DEBUG=mapi:folder for this.


Modified:
   branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/ChangeLog
   branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c

Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c	(original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c	Wed Jul 30 08:50:55 2008
@@ -33,6 +33,7 @@
 #include <camel/camel-private.h>
 #include <camel/camel-stream-buffer.h>
 #include <camel/camel-stream-mem.h>
+#include <camel/camel-debug.h>
 
 #include <libmapi/libmapi.h>
 #include <exchange-mapi-utils.h>
@@ -165,10 +166,14 @@
 
 	MapiItem *item = g_new0(MapiItem , 1);
 
+	if (camel_debug_start("mapi:folder")) {
+		exchange_mapi_debug_property_dump (array);
+		camel_debug_end();
+	}
+
 	item->fid = fid;
 	item->mid = mid;
 
-	/* FixME : which on of this will fetch the subject. */
 	item->header.subject = g_strdup (find_mapi_SPropValue_data (array, PR_NORMALIZED_SUBJECT));
 	item->header.to = g_strdup (find_mapi_SPropValue_data (array, PR_DISPLAY_TO));
 	item->header.cc = g_strdup (find_mapi_SPropValue_data (array, PR_DISPLAY_CC));
@@ -697,7 +702,6 @@
 fetch_item_cb 	(struct mapi_SPropValue_array *array, mapi_id_t fid, mapi_id_t mid, 
 		GSList *streams, GSList *recipients, GSList *attachments, gpointer data)
 {
-	exchange_mapi_debug_property_dump (array);
 	long *flags;
 	struct FILETIME *delivery_date;
 	const char *msg_class;
@@ -707,6 +711,11 @@
 
 	MapiItem **i = (MapiItem **)data;
 
+	if (camel_debug_start("mapi:folder")) {
+		exchange_mapi_debug_property_dump (array);
+		camel_debug_end();
+	}
+
 	item->fid = fid;
 	item->mid = mid;
 



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