diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index 957b3dd..6016816 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -2739,8 +2739,10 @@ e_mail_display_process_magic_spacebar (EMailDisplay *display,
 	g_return_val_if_fail (E_IS_MAIL_DISPLAY (display), FALSE);
 
 	web_extension = e_web_view_get_web_extension_proxy (E_WEB_VIEW (display));
-	if (!web_extension)
+	if (!web_extension) {
+		printf ("   %s: no web extension, returning FALSE\n", __FUNCTION__);
 		return FALSE;
+	}
 
 	result = e_util_invoke_g_dbus_proxy_call_sync_wrapper_full (
 		web_extension,
@@ -2762,5 +2764,7 @@ e_mail_display_process_magic_spacebar (EMailDisplay *display,
 		g_variant_unref (result);
 	}
 
+	printf ("   %s: returning %s\n", __FUNCTION__, processed ? "TRUE" : "FALSE");
+
 	return processed;
 }
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 4512385..ac4e058 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -3274,16 +3274,25 @@ em_folder_tree_select_next_path (EMFolderTree *folder_tree,
 				if (!path)
 					break;
 			}
-			gtk_tree_model_get (model, &iter, COL_UINT_UNREAD, &unread, -1);
+			{
+			gchar *fullname = NULL;
+			gtk_tree_model_get (model, &iter, COL_UINT_UNREAD, &unread, COL_STRING_FULL_NAME, &fullname, -1);
+			printf ("   %s: trying one folder '%s' with unread:%u\n", __FUNCTION__, fullname, unread);
+			g_free (fullname);
+			}
 
 		/* TODO : Flags here for better options */
 		} while (skip_read_folders && unread <=0 &&
 			gtk_tree_path_compare (current_path, path));
 
 		gtk_tree_path_free (current_path);
+	} else {
+		printf ("   %s: nothing selected in folder tree\n", __FUNCTION__);
 	}
 
 	if (path) {
+		printf ("   %s: going to chage folder tree path\n", __FUNCTION__);
+
 		if (!gtk_tree_view_row_expanded (tree_view, path))
 			gtk_tree_view_expand_to_path (tree_view, path);
 
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 0eb135d..afa874a 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1400,6 +1400,7 @@ action_mail_smart_backward_cb (GtkAction *action,
 	toggle_action = GTK_TOGGLE_ACTION (ACTION (MAIL_CARET_MODE));
 	caret_mode = gtk_toggle_action_get_active (toggle_action);
 
+	printf ("%s: caret-mode:%d magic_spacebar:%d\n", __FUNCTION__, caret_mode, magic_spacebar);
 	if (!e_mail_display_process_magic_spacebar (display, FALSE)) {
 
 		if (caret_mode || !magic_spacebar)
@@ -1411,17 +1412,22 @@ action_mail_smart_backward_cb (GtkAction *action,
 		    MESSAGE_LIST (message_list),
 		    MESSAGE_LIST_SELECT_PREVIOUS |
 		    MESSAGE_LIST_SELECT_INCLUDE_COLLAPSED,
-		    0, CAMEL_MESSAGE_SEEN))
+		    0, CAMEL_MESSAGE_SEEN)) {
+			printf ("%s: did select previous\n", __FUNCTION__);
 			return;
+		}
 
 		if (message_list_select (
 		    MESSAGE_LIST (message_list),
 		    MESSAGE_LIST_SELECT_PREVIOUS |
 		    MESSAGE_LIST_SELECT_WRAP |
 		    MESSAGE_LIST_SELECT_INCLUDE_COLLAPSED,
-		    0, CAMEL_MESSAGE_SEEN))
+		    0, CAMEL_MESSAGE_SEEN)) {
+			printf ("%s: did select previous with wrap\n", __FUNCTION__);
 			return;
+		}
 
+		printf ("%s: going to search in folder tree\n", __FUNCTION__);
 		em_folder_tree_select_next_path (folder_tree, TRUE);
 
 		gtk_widget_grab_focus (message_list);
@@ -1468,6 +1474,7 @@ action_mail_smart_forward_cb (GtkAction *action,
 	toggle_action = GTK_TOGGLE_ACTION (ACTION (MAIL_CARET_MODE));
 	caret_mode = gtk_toggle_action_get_active (toggle_action);
 
+	printf ("%s: caret-mode:%d magic_spacebar:%d\n", __FUNCTION__, caret_mode, magic_spacebar);
 	if (!e_mail_display_process_magic_spacebar (display, TRUE)) {
 
 		if (caret_mode || !magic_spacebar)
@@ -1479,17 +1486,22 @@ action_mail_smart_forward_cb (GtkAction *action,
 		    MESSAGE_LIST (message_list),
 		    MESSAGE_LIST_SELECT_NEXT |
 		    MESSAGE_LIST_SELECT_INCLUDE_COLLAPSED,
-		    0, CAMEL_MESSAGE_SEEN))
+		    0, CAMEL_MESSAGE_SEEN)) {
+			printf ("%s: did select next\n", __FUNCTION__);
 			return;
+		}
 
 		if (message_list_select (
 		    MESSAGE_LIST (message_list),
 		    MESSAGE_LIST_SELECT_NEXT |
 		    MESSAGE_LIST_SELECT_WRAP |
 		    MESSAGE_LIST_SELECT_INCLUDE_COLLAPSED,
-		    0, CAMEL_MESSAGE_SEEN))
+		    0, CAMEL_MESSAGE_SEEN)) {
+			printf ("%s: did select next with wrap\n", __FUNCTION__);
 			return;
+		}
 
+		printf ("%s: going to search in folder tree\n", __FUNCTION__);
 		em_folder_tree_select_next_path (folder_tree, TRUE);
 
 		gtk_widget_grab_focus (message_list);
diff --git a/web-extensions/e-web-extension.c b/web-extensions/e-web-extension.c
index d464018..ec94b41 100644
--- a/web-extensions/e-web-extension.c
+++ b/web-extensions/e-web-extension.c
@@ -991,8 +991,10 @@ handle_method_call (GDBusConnection *connection,
 
 		g_variant_get (parameters, "(tb)", &page_id, &towards_bottom);
 		web_page = get_webkit_web_page_or_return_dbus_error (invocation, web_extension, page_id);
-		if (!web_page)
+		if (!web_page) {
+			printf ("      %s: ProcessMagicSpacebar: no web page\n", __FUNCTION__);
 			return;
+		}
 
 		document = webkit_web_page_get_dom_document (web_page);
 		dom_window = webkit_dom_document_get_default_view (document);
@@ -1009,9 +1011,11 @@ handle_method_call (GDBusConnection *connection,
 				"scroll-y", &scroll_y_after,
 				NULL);
 
+			printf ("      %s: ProcessMagicSpacebar: scroll_y before:%d after:%d\n", __FUNCTION__, (gint) scroll_y_before, (gint) scroll_y_after);
 			processed = scroll_y_before != scroll_y_after;
 		}
 
+		printf ("      %s: ProcessMagicSpacebar: finishing with:%d\n", __FUNCTION__, processed);
 		g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", processed));
 	}
 }
