aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-offline-handler.c
diff options
context:
space:
mode:
authorShreyas Srinivasan <sshreyas@novell.com>2005-05-13 16:50:16 +0800
committerShreyas Srinivasan <shres@src.gnome.org>2005-05-13 16:50:16 +0800
commited8ecf6bdf2a22ea240793c70607266da7e7ff1c (patch)
tree2e5472d256f96c5b7ee39e28fe0db9f3c10181ae /mail/mail-offline-handler.c
parent409d50475b90a16a0ab5ff5d787f34cdf143ff2c (diff)
downloadgsoc2013-evolution-ed8ecf6bdf2a22ea240793c70607266da7e7ff1c.tar.gz
gsoc2013-evolution-ed8ecf6bdf2a22ea240793c70607266da7e7ff1c.tar.zst
gsoc2013-evolution-ed8ecf6bdf2a22ea240793c70607266da7e7ff1c.zip
Fixes bug #273868, #300113, #302831.
2005-05-06 Shreyas Srinivasan <sshreyas@novell.com> * Fixes bug #273868, #300113, #302831. * mail-offline-handler.c : Add check for Camel Offline store check to is_service_relevant. svn path=/trunk/; revision=29349
Diffstat (limited to 'mail/mail-offline-handler.c')
-rw-r--r--mail/mail-offline-handler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-offline-handler.c b/mail/mail-offline-handler.c
index d2b2cdbce0..c79b8ae36a 100644
--- a/mail/mail-offline-handler.c
+++ b/mail/mail-offline-handler.c
@@ -33,6 +33,7 @@
#include "em-folder-tree.h"
#include <camel/camel-disco-store.h>
+#include <camel/camel-offline-store.h>
#include "mail-session.h"
#include <gtk/gtkmain.h>
@@ -56,7 +57,9 @@ service_is_relevant (CamelService *service, gboolean going_offline)
if (CAMEL_IS_DISCO_STORE (service) &&
camel_disco_store_status (CAMEL_DISCO_STORE (service)) == CAMEL_DISCO_STORE_OFFLINE)
return !going_offline;
-
+ else if ( CAMEL_IS_OFFLINE_STORE (service) &&
+ CAMEL_OFFLINE_STORE ( service )->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL )
+ return !going_offline;
return service->status != CAMEL_SERVICE_DISCONNECTED;
}