aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-09-21 05:01:53 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-21 05:01:53 +0800
commit412c2967bb93845e152022aefac70ad93571a288 (patch)
tree55d48f12679eb94191862e454eb87f9faa725796 /mail/mail-vfolder.c
parentb5bf3f9615b040be5f9d7402a861b1c44dfd18c4 (diff)
downloadgsoc2013-evolution-412c2967bb93845e152022aefac70ad93571a288.tar.gz
gsoc2013-evolution-412c2967bb93845e152022aefac70ad93571a288.tar.zst
gsoc2013-evolution-412c2967bb93845e152022aefac70ad93571a288.zip
Register vfolder sources here.
2001-09-20 <NotZed@Ximian.com> * mail-tools.c(mail_tool_uri_to_folder): Register vfolder sources here. * folder-browser.c (got_folder): Dont register vfolder sources here. * mail-ops.c (mail_get_folder): Add thread parameter. Fix callers. * mail-vfolder.c (vfolder_setup): Use the 'slow' queue for setting up vfolders. * mail-mt.c (mail_msg_init): Limit the maximum number of threads on the 'new' thread to 10. (mail_msg_init): Create a new queue 'slow' for doing slow operations. svn path=/trunk/; revision=13017
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 51740bf30f..c5dec4fb64 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -133,6 +133,14 @@ struct _setup_msg {
GList *sources_folder;
};
+static char *
+vfolder_setup_desc(struct _mail_msg *mm, int done)
+{
+ struct _setup_msg *m = (struct _setup_msg *)mm;
+
+ return g_strdup_printf(_("Setting up vfolder: %s"), m->folder->full_name);
+}
+
static void
vfolder_setup_do(struct _mail_msg *mm)
{
@@ -140,6 +148,8 @@ vfolder_setup_do(struct _mail_msg *mm)
GList *l, *list = NULL;
CamelFolder *folder;
+ printf("Setting up vfolder: %s\n", m->folder->full_name);
+
camel_vee_folder_set_expression((CamelVeeFolder *)m->folder, m->query);
l = m->sources_uri;
@@ -204,7 +214,7 @@ vfolder_setup_free (struct _mail_msg *mm)
}
static struct _mail_msg_op vfolder_setup_op = {
- NULL,
+ vfolder_setup_desc,
vfolder_setup_do,
vfolder_setup_done,
vfolder_setup_free,
@@ -224,7 +234,7 @@ vfolder_setup(CamelFolder *folder, const char *query, GList *sources_uri, GList
m->sources_folder = sources_folder;
id = m->msg.seq;
- e_thread_put(mail_thread_queued, (EMsg *)m);
+ e_thread_put(mail_thread_queued_slow, (EMsg *)m);
return id;
}