From e8409a25392daee179f822c82d85a3e68b31f0ca Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Tue, 8 Jan 2008 03:33:35 +0000 Subject: Patch from Bharath Acharya : Fix for bug #474118 (Check for store type and invoke appropriate *_prepare_for_offline functions) svn path=/trunk/; revision=34778 --- mail/mail-ops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 82fb0af912..894d4d8c2f 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2321,8 +2321,13 @@ prepare_offline_desc (struct _set_offline_msg *m) static void prepare_offline_exec (struct _set_offline_msg *m) { - camel_disco_store_prepare_for_offline (CAMEL_DISCO_STORE (m->store), + if (CAMEL_IS_DISCO_STORE (m->store)) { + camel_disco_store_prepare_for_offline (CAMEL_DISCO_STORE (m->store), &m->base.ex); + } else if (CAMEL_IS_OFFLINE_STORE (m->store)) { + camel_offline_store_prepare_for_offline (CAMEL_OFFLINE_STORE (m->store), + &m->base.ex); + } } static void -- cgit