aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-ops.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e8c0461cb0..08f7ed9499 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2000-06-22 Chris Toshok <toshok@helixcode.com>
+
+ * mail-ops.c (fetch_mail_cleanup): new function, passed as arg to
+ mail_operation_try.
+ (fetch_mail): add cleanup func arg.
+
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Changed ml_value_at to return "" instead of NULL
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index a6de2ae1cd..a9c183b3a1 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -266,6 +266,12 @@ real_fetch_mail( gpointer user_data )
camel_exception_free (ex);
}
+static void
+fetch_mail_cleanup (gpointer user_data)
+{
+ /* nothing */
+}
+
/* FIXME: This is BROKEN! It fetches mail into whatever folder you're
* currently viewing.
*/
@@ -299,7 +305,7 @@ fetch_mail (GtkWidget *button, gpointer user_data)
info = g_new( rfm_t, 1 );
info->fb = FOLDER_BROWSER( user_data );
info->source_url = url;
- mail_operation_try( _("Fetching mail"), real_fetch_mail, info );
+ mail_operation_try( _("Fetching mail"), real_fetch_mail, fetch_mail_cleanup, info );
}