aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/e-mail-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'libemail-engine/e-mail-session.c')
-rw-r--r--libemail-engine/e-mail-session.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 84ac60a736..ddeef06986 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -751,6 +751,29 @@ mail_session_configure_local_store (EMailSession *session)
}
static void
+mail_session_configure_vfolder_store (EMailSession *session)
+{
+ CamelSession *camel_session;
+ CamelService *service;
+ const gchar *uid;
+
+ camel_session = CAMEL_SESSION (session);
+
+ uid = E_MAIL_SESSION_VFOLDER_UID;
+ service = camel_session_get_service (camel_session, uid);
+ g_return_if_fail (CAMEL_IS_SERVICE (service));
+
+ camel_service_connect_sync (service, NULL, NULL);
+
+ /* XXX There's more configuration to do in vfolder_load_storage()
+ * but it requires an EMailBackend, which we don't have access
+ * to from here, so it has to be called from elsewhere. Kinda
+ * thinking about reworking that... */
+
+ session->priv->vfolder_store = g_object_ref (service);
+}
+
+static void
mail_session_force_refresh (EMailSession *session)
{
ESourceRegistry *registry;
@@ -981,29 +1004,6 @@ mail_session_dispose (GObject *object)
}
static void
-mail_session_configure_vfolder_store (EMailSession *session)
-{
- CamelSession *camel_session;
- CamelService *service;
- const gchar *uid;
-
- camel_session = CAMEL_SESSION (session);
-
- uid = E_MAIL_SESSION_VFOLDER_UID;
- service = camel_session_get_service (camel_session, uid);
- g_return_if_fail (CAMEL_IS_SERVICE (service));
-
- camel_service_connect_sync (service, NULL, NULL);
-
- /* XXX There's more configuration to do in vfolder_load_storage()
- * but it requires an EMailBackend, which we don't have access
- * to from here, so it has to be called from elsewhere. Kinda
- * thinking about reworking that... */
-
- session->priv->vfolder_store = g_object_ref (service);
-}
-
-static void
mail_session_finalize (GObject *object)
{
EMailSessionPrivate *priv;