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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 30a83d4230..b195238145 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -51,6 +51,9 @@
/* This is our hack, not part of libcamel. */
#include "camel-null-store.h"
+/* This too, though it's less of a hack. */
+#include "camel-sasl-xoauth2.h"
+
#include "e-mail-authenticator.h"
#include "e-mail-junk-filter.h"
#include "e-mail-session.h"
@@ -1963,6 +1966,9 @@ e_mail_session_class_init (EMailSessionClass *class)
/* Make sure ESourceCamel picks up the "none" provider. */
e_source_camel_generate_subtype ("none", CAMEL_TYPE_SETTINGS);
+
+ /* Make sure CamelSasl picks up the XOAUTH2 mechanism. */
+ g_type_ensure (CAMEL_TYPE_SASL_XOAUTH2);
}
static void