[evolution-data-server/imap-notify: 40/40] Temporary debugging messages [DO NOT PUSH!]



commit 09cdf11107f32ffab53c6bcadb26b2a587806958
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Sep 11 18:26:48 2013 -0400

    Temporary debugging messages [DO NOT PUSH!]

 camel/camel-imapx-store.c  |    6 ++++++
 camel/camel-imapx-stream.c |    4 ++++
 camel/camel-store.c        |    3 +++
 camel/camel-subscribable.c |    2 ++
 4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-imapx-store.c b/camel/camel-imapx-store.c
index 75de63f..34b3b26 100644
--- a/camel/camel-imapx-store.c
+++ b/camel/camel-imapx-store.c
@@ -444,6 +444,12 @@ imapx_store_process_mailbox_attributes (CamelIMAPXStore *store,
                mailbox_was_subscribed = FALSE;
        }
 
+       g_message ("%s: %s%s%s%s",
+               G_STRFUNC, mailbox_name,
+               mailbox_was_in_summary ? " (in-summary)" : "",
+               mailbox_is_subscribed ? " (/Subscribed)" : "",
+               mailbox_is_nonexistent ? " (/NonExistent)" : "");
+
        /* Check if the SUBSCRIBED flags disagree. */
        if ((flags ^ si->info.flags) & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED) {
                si->info.flags &= ~CAMEL_FOLDER_SUBSCRIBED;
diff --git a/camel/camel-imapx-stream.c b/camel/camel-imapx-stream.c
index 9899792..d3b23cb 100644
--- a/camel/camel-imapx-stream.c
+++ b/camel/camel-imapx-stream.c
@@ -77,11 +77,13 @@ imapx_stream_fill (CamelIMAPXStream *is,
                memcpy (is->priv->buf, is->priv->ptr, left);
                is->priv->end = is->priv->buf + left;
                is->priv->ptr = is->priv->buf;
+               g_print ("%s: Start reading...\n", G_STRFUNC);
                left = camel_stream_read (
                        is->priv->source,
                        (gchar *) is->priv->end,
                        is->priv->bufsize - (is->priv->end - is->priv->buf),
                        cancellable, error);
+               g_print ("%s: Done reading...\n", G_STRFUNC);
                if (left > 0) {
                        is->priv->end += left;
                        io (is->tagprefix, "camel_imapx_read: buffer is '%.*s'\n", (gint)(is->priv->end - 
is->priv->ptr), is->priv->ptr);
@@ -201,9 +203,11 @@ imapx_stream_read (CamelStream *stream,
                is->priv->ptr += max;
        } else {
                max = MIN (is->priv->literal, n);
+               g_print ("%s: Start reading...\n", G_STRFUNC);
                max = camel_stream_read (
                        is->priv->source,
                        buffer, max, cancellable, error);
+               g_print ("%s: Done reading...\n", G_STRFUNC);
                if (max <= 0)
                        return max;
        }
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 057ca78..912a0d3 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -139,6 +139,7 @@ store_emit_folder_created_cb (gpointer user_data)
        store = g_weak_ref_get (&signal_closure->store);
 
        if (store != NULL) {
+               g_message ("FOLDER_CREATED (%s)", signal_closure->folder_info->display_name);
                g_signal_emit (
                        store,
                        signals[FOLDER_CREATED], 0,
@@ -158,6 +159,7 @@ store_emit_folder_deleted_cb (gpointer user_data)
        store = g_weak_ref_get (&signal_closure->store);
 
        if (store != NULL) {
+               g_message ("FOLDER_DELETED (%s)", signal_closure->folder_info->display_name);
                g_signal_emit (
                        store,
                        signals[FOLDER_DELETED], 0,
@@ -196,6 +198,7 @@ store_emit_folder_renamed_cb (gpointer user_data)
        store = g_weak_ref_get (&signal_closure->store);
 
        if (store != NULL) {
+               g_message ("FOLDER_RENAMED (%s)", signal_closure->folder_info->display_name);
                g_signal_emit (
                        store,
                        signals[FOLDER_RENAMED], 0,
diff --git a/camel/camel-subscribable.c b/camel/camel-subscribable.c
index 9675e15..5fe3b99 100644
--- a/camel/camel-subscribable.c
+++ b/camel/camel-subscribable.c
@@ -75,6 +75,7 @@ subscribable_emit_folder_subscribed_cb (gpointer user_data)
        subscribable = g_weak_ref_get (&signal_closure->subscribable);
 
        if (subscribable != NULL) {
+               g_message ("FOLDER_SUBSCRIBED (%s)", signal_closure->folder_info->display_name);
                g_signal_emit (
                        subscribable,
                        signals[FOLDER_SUBSCRIBED], 0,
@@ -94,6 +95,7 @@ subscribable_emit_folder_unsubscribed_cb (gpointer user_data)
        subscribable = g_weak_ref_get (&signal_closure->subscribable);
 
        if (subscribable != NULL) {
+               g_message ("FOLDER_UNSUBSCRIBED (%s)", signal_closure->folder_info->display_name);
                g_signal_emit (
                        subscribable,
                        signals[FOLDER_UNSUBSCRIBED], 0,


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