aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--tests/ui-tests/store_listing.c47
2 files changed, 24 insertions, 25 deletions
diff --git a/ChangeLog b/ChangeLog
index ed6cd1386e..45f60f3fcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* tests/ui-tests/store_listing.c (show_folder_messages):
use folder summary instead of opening all messages.
+ (show_folder_messages): re-enabled old CPU/Mem consumming
+ method. Use ful for pop3 for instance.
* camel/providers/MH/camel-mh-folder.c (_create_summary):
basic and highly non-efficient summary implementation.
diff --git a/tests/ui-tests/store_listing.c b/tests/ui-tests/store_listing.c
index ca69985221..dc845597b7 100644
--- a/tests/ui-tests/store_listing.c
+++ b/tests/ui-tests/store_listing.c
@@ -139,30 +139,6 @@ show_folder_messages (CamelFolder *folder)
/* clear old message list */
gtk_clist_clear (GTK_CLIST (message_clist));
-
-#if 0
- folder_message_count = camel_folder_get_message_count (folder);
-
- for (i=0; i<folder_message_count; i++) {
- message = camel_folder_get_message (folder, i);
- gtk_object_ref (GTK_OBJECT (message));
- sent_date = camel_mime_message_get_sent_date (message);
- sender = camel_mime_message_get_from (message);
- subject = camel_mime_message_get_subject (message);
-
-
- if (sent_date) clist_row_text [0] = sent_date;
- else clist_row_text [0] = NULL;
- if (sender) clist_row_text [1] = sender;
- else clist_row_text [1] = NULL;
- if (subject) clist_row_text [2] = subject;
- else clist_row_text [2] = NULL;
-
- current_row = gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
- gtk_clist_set_row_data_full (GTK_CLIST (message_clist), current_row, (gpointer)message, message_destroy_notify);
- }
-
-#endif
if (camel_folder_has_summary_capability (folder)) {
const GList *message_info_list;
@@ -183,7 +159,28 @@ show_folder_messages (CamelFolder *folder)
message_info_list = message_info_list->next;
}
} else {
- printf ("Folder does not have summary. Skipping\n");
+ printf ("Folder does not have summary. Opening all messages\n");
+ folder_message_count = camel_folder_get_message_count (folder);
+
+ for (i=0; i<folder_message_count; i++) {
+ message = camel_folder_get_message (folder, i);
+ gtk_object_ref (GTK_OBJECT (message));
+ sent_date = camel_mime_message_get_sent_date (message);
+ sender = camel_mime_message_get_from (message);
+ subject = camel_mime_message_get_subject (message);
+
+
+ if (sent_date) clist_row_text [0] = sent_date;
+ else clist_row_text [0] = NULL;
+ if (sender) clist_row_text [1] = sender;
+ else clist_row_text [1] = NULL;
+ if (subject) clist_row_text [2] = subject;
+ else clist_row_text [2] = NULL;
+
+ current_row = gtk_clist_append (GTK_CLIST (message_clist), clist_row_text);
+ gtk_clist_set_row_data_full (GTK_CLIST (message_clist), current_row, (gpointer)message, message_destroy_notify);
+ }
+
}
}