diff options
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-offline-handler.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 2692f43f62..e477b2797e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2005-05-13 Shreyas Srinivasan <sshreyas@novell.com> + + * Fixes bug #273868, #300113, #302831. + + * mail-offline-handler.c : Add check for Camel Offline + store to is_service_relevant. + 2005-04-21 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (post_reply_to_message): Use the real folder 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; } |