aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/message-list.c26
2 files changed, 21 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index f16399f24c..17d53bc8ff 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-23 Matt Loper <matt@helixcode.com>
+
+ * message-list.c (message_list_set_folder): Check 'desc'riptions
+ of exceptions.
+
2000-02-22 bertrand <Bertrand.Guiheneuf@aful.org>
* message-list.c (message_list_set_folder):
diff --git a/mail/message-list.c b/mail/message-list.c
index 6f571c1029..790ff235b8 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -476,7 +476,8 @@ message_list_set_folder (MessageList *message_list, CamelFolder *camel_folder)
folder_exists = camel_folder_exists (camel_folder, NULL);
if (camel_exception_get_id (&ex)) {
- printf ("Unable to test for folder existence \n");
+ printf ("Unable to test for folder existence: %s\n",
+ ex.desc?ex.desc:"unknown reason");
return;
}
@@ -488,7 +489,8 @@ message_list_set_folder (MessageList *message_list, CamelFolder *camel_folder)
*/
camel_folder_create (camel_folder, &ex);
if (camel_exception_get_id (&ex)) {
- printf ("Unable to create folder\n");
+ printf ("Unable to create folder: %s\n",
+ ex.desc?ex.desc:"unknown_reason");
return;
}
@@ -497,17 +499,21 @@ message_list_set_folder (MessageList *message_list, CamelFolder *camel_folder)
camel_folder_open (camel_folder, FOLDER_OPEN_RW, &ex);
if (camel_exception_get_id (&ex)) {
- printf ("Unable to open folder\n");
- return;
+ printf ("Unable to open folder: %s\n",
+ ex.desc?ex.desc:"unknown_reason");
+ return;
}
-
- message_list->folder_summary = camel_folder_get_summary (camel_folder, &ex);
+
+ message_list->folder_summary =
+ camel_folder_get_summary (camel_folder, &ex);
+
if (camel_exception_get_id (&ex)) {
- printf ("Unable to get summary \n");
- return;
+ printf ("Unable to get summary: %s\n",
+ ex.desc?ex.desc:"unknown_reason");
+ return;
}
-
-
+
+
gtk_object_ref (GTK_OBJECT (camel_folder));
printf ("Modelo cambio!\n");