aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-09-06 00:25:18 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-09-06 00:25:18 +0800
commite716a2ed8bb0e9caed9af80152a40aad24629266 (patch)
treec8bde3a71de073655482faf7432e2b41ef02879a
parent4e4eb45bf69d539996b298a13bf650c5ebea7f16 (diff)
downloadgsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar.gz
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar.bz2
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar.lz
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar.xz
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.tar.zst
gsoc2013-evolution-e716a2ed8bb0e9caed9af80152a40aad24629266.zip
re-enabled old CPU/Mem consumming method. Use ful for pop3 for instance.
1999-09-05 bertrand <Bertrand.Guiheneuf@aful.org> * tests/ui-tests/store_listing.c (show_folder_messages): re-enabled old CPU/Mem consumming method. Use ful for pop3 for instance. svn path=/trunk/; revision=1179
-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);
+ }
+
}
}