aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-folder-cache.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-07-25 03:37:57 +0800
committerPeter Williams <peterw@src.gnome.org>2002-07-25 03:37:57 +0800
commit86d2d39580ff3aa27f17766dd117765f4786b924 (patch)
tree07144b11fc3dcf90804e51779fc3328000a6640e /mail/mail-folder-cache.c
parenta401de9c229ea548029863b34672c34137a2ca94 (diff)
downloadgsoc2013-evolution-86d2d39580ff3aa27f17766dd117765f4786b924.tar.gz
gsoc2013-evolution-86d2d39580ff3aa27f17766dd117765f4786b924.tar.zst
gsoc2013-evolution-86d2d39580ff3aa27f17766dd117765f4786b924.zip
Call camel_session_get_service instead of camel_session_get_store, as
2002-07-23 Peter Williams <peterw@ximian.com> * mail-ops.c (get_store_get): Call camel_session_get_service instead of camel_session_get_store, as _get_store calls _get_service_connected which is not what we want to do on startup. (set_offline_do): Rework the logic here. It was failing when trying to go online with a disco store that couldn't work offline. * mail-folder-cache.c (mail_note_store): If we're using an offline (well, non-online) disco store that cannot work offline, don't get the folderinfo as that will fail. svn path=/trunk/; revision=17576
Diffstat (limited to 'mail/mail-folder-cache.c')
-rw-r--r--mail/mail-folder-cache.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index 0e352bd634..5d7f1c879e 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -36,6 +36,7 @@
#include <camel/camel-folder.h>
#include <camel/camel-vtrash-folder.h>
#include <camel/camel-vee-store.h>
+#include <camel/camel-disco-store.h>
#include <gal/util/e-unicode-i18n.h>
#include "mail-mt.h"
@@ -761,12 +762,17 @@ mail_note_store(CamelStore *store, EvolutionStorage *storage, GNOME_Evolution_St
camel_object_hook_event((CamelObject *)store, "folder_unsubscribed", store_folder_unsubscribed, NULL);
}
- ud = g_malloc(sizeof(*ud));
- ud->done = done;
- ud->data = data;
- ud->id = mail_get_folderinfo(store, update_folders, ud);
- e_dlist_addtail(&si->folderinfo_updates, (EDListNode *)ud);
+ if (!CAMEL_IS_DISCO_STORE (store) ||
+ camel_disco_store_status (CAMEL_DISCO_STORE (store)) == CAMEL_DISCO_STORE_ONLINE ||
+ camel_disco_store_can_work_offline (CAMEL_DISCO_STORE (store))) {
+ ud = g_malloc(sizeof(*ud));
+ ud->done = done;
+ ud->data = data;
+ ud->id = mail_get_folderinfo(store, update_folders, ud);
+
+ e_dlist_addtail(&si->folderinfo_updates, (EDListNode *)ud);
+ }
UNLOCK(info_lock);
}
0'>2013-09-211-5/+2 * - Get Rid MD5 supportmiwi2011-03-201-1/+0 * Bump PORTREVISION for ports linking to default libmysqlclient.ale2011-03-191-1/+1 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - Remove conditional checks relevant only on FreeBSD 5.x and olderpav2009-01-061-7/+1 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-1/+1 * Conversion to a single libtool environment.ade2006-02-232-2/+4 * * databases/mysql++mnag2005-12-162-8/+13 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * - Update to 1.7.40pav2005-06-043-38/+8 * Update to latest version.thierry2005-05-104-26/+357 * - Update to 1.7.32sem2005-03-124-26/+5 * - Update to 1.7.31sem2005-03-074-3/+25 * - update to 1.7.30sem2005-03-053-53/+13 * - Update to 1.7.28sem2005-02-092-3/+3 * - Update to 1.7.27sem2005-01-143-36/+31 * - Update to 1.7.20pav2004-11-216-151/+95 * BROKEN on 5.x: Does not compilekris2004-09-191-0/+5 * - Update WWW and kill whitespacepav2004-06-071-5/+5 * SIZEify (maintainer timeout)trevor2004-03-311-0/+2 * Fix build on AMD64 by using GNU_CONFIGUREarved2004-02-211-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1 * - Fix build on 4.xpav2003-12-152-3/+16 * - Fix buildkrion2003-10-171-0/+1 * - Change patches for gcc 3.1 and gcc 3.2 with patch for gcc 3.3krion2003-09-303-53/+53 * Make port more localbase cleanedwin2003-09-041-0/+3 * De-pkg-comment.knu2003-02-212-1/+1 * Fix build on -CURRENT and reduce compiler warning on 3.x.nork2003-02-132-5/+15 * update master sitesijliao2002-02-111-2/+3 * Upgrade to 1.7.9.dirk2001-08-092-3/+2 * Fix typo: INSTALL_SHLIB -> INSTALLS_SHLIBolgeni2001-06-021-1/+1 * Update MASTER_SITES: the port had some unfetchable distfiles.olgeni2001-03-081-3/+1 * Update to 1.7.8.dirk2001-02-185-20/+14 * o Add missing headers.sf2001-01-223-3/+8 * Switch from mysql322-{client,server} to mysql323-{client,server}.dirk2001-01-211-1/+1 * Correct PLIST, Makefile, and portlint nitsjedgar2000-08-023-19/+18