aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-06-03 01:50:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-06-03 01:50:26 +0800
commit95d963dec575e1c6f451d36b0870e92c0de6cde3 (patch)
tree12faf7d49494c8a190f11e84b8e8b24f51038c20 /mail/mail-ops.c
parent3bf07b8693c59ce11edb1eff5e2ae301d1a66544 (diff)
downloadgsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar.gz
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar.bz2
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar.lz
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar.xz
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.tar.zst
gsoc2013-evolution-95d963dec575e1c6f451d36b0870e92c0de6cde3.zip
** This and jeffs patch for #43862.
2003-06-02 Not Zed <NotZed@Ximian.com> ** This and jeffs patch for #43862. * mail-folder-cache.c (store_online_cb): If the store is still around, then flow on to a get folderinfo update, otherwise just clear up. * mail-ops.c (mail_store_set_offline): return the msgid of this so it can be cancelled. 2003-05-30 Jeffrey Stedfast <fejj@ximian.com> * mail-folder-cache.c (mail_note_store): If the session is 'online' and we are noting a CamelDiscoStore, make sure that it is changed to online status and call mail_get_folderinfo(). svn path=/trunk/; revision=21369
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 787614f19b..f3469bf3e6 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2269,12 +2269,13 @@ static struct _mail_msg_op set_offline_op = {
set_offline_free,
};
-void
+int
mail_store_set_offline (CamelStore *store, gboolean offline,
void (*done)(CamelStore *, void *data),
void *data)
{
struct _set_offline_msg *m;
+ int id;
/* Cancel any pending connect first so the set_offline_op
* thread won't get queued behind a hung connect op.
@@ -2289,7 +2290,10 @@ mail_store_set_offline (CamelStore *store, gboolean offline,
m->data = data;
m->done = done;
+ id = m->msg.seq;
e_thread_put(mail_thread_queued, (EMsg *)m);
+
+ return id;
}
/* ** Execute Shell Command ***************************************************** */