aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 7dc3c268f3..e21d6b7ef2 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -665,3 +665,20 @@ camel_session_set_online (CamelSession *session, gboolean online)
{
session->online = online;
}
+
+
+/**
+ * camel_session_get_filter_driver:
+ * @session: the session
+ * @type: the type of filter (eg, "incoming")
+ * @ex: a CamelException
+ *
+ * Return value: a filter driver, loaded with applicable rules
+ **/
+CamelFilterDriver *
+camel_session_get_filter_driver (CamelSession *session,
+ const char *type,
+ CamelException *ex)
+{
+ return CS_CLASS (session)->get_filter_driver (session, type, ex);
+}