[evolution] EMailSession: Remove get_filter_driver() implementation.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMailSession: Remove get_filter_driver() implementation.
- Date: Wed, 27 Feb 2013 16:00:32 +0000 (UTC)
commit c6bda27c9c3120c953a728917e6370e88089d377
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Feb 27 08:15:32 2013 -0500
EMailSession: Remove get_filter_driver() implementation.
This gets overshadowed by EMailUISession's implementation, which also
sets up the filter log file plus much more.
libemail-engine/e-mail-session.c | 61 --------------------------------------
1 files changed, 0 insertions(+), 61 deletions(-)
---
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 8d852ed..db756ee 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -248,56 +248,6 @@ static MailMsgInfo user_message_info = {
(MailMsgFreeFunc) user_message_free
};
-/* Support for CamelSession.get_filter_driver () *****************************/
-
-static CamelFolder *
-get_folder (CamelFilterDriver *d,
- const gchar *uri,
- gpointer user_data,
- GError **error)
-{
- EMailSession *session = E_MAIL_SESSION (user_data);
-
- /* FIXME Not passing a GCancellable here. */
- /* FIXME Need a camel_filter_driver_get_session(). */
- return e_mail_session_uri_to_folder_sync (
- session, uri, 0, NULL, error);
-}
-
-static CamelFilterDriver *
-main_get_filter_driver (CamelSession *session,
- const gchar *type,
- GError **error)
-{
- CamelFilterDriver *driver;
- EMailSession *ms = (EMailSession *) session;
- GSettings *settings;
-
- settings = g_settings_new ("org.gnome.evolution.mail");
-
- driver = camel_filter_driver_new (session);
- camel_filter_driver_set_folder_func (driver, get_folder, session);
-
- if (g_settings_get_boolean (settings, "filters-log-actions")) {
- if (ms->priv->filter_logfile == NULL) {
- gchar *filename;
-
- filename = g_settings_get_string (settings, "filters-log-file");
- if (filename) {
- ms->priv->filter_logfile = g_fopen (filename, "a+");
- g_free (filename);
- }
- }
-
- if (ms->priv->filter_logfile)
- camel_filter_driver_set_logfile (driver, ms->priv->filter_logfile);
- }
-
- g_object_unref (settings);
-
- return driver;
-}
-
static gboolean
session_forward_to_flush_outbox_cb (gpointer user_data)
{
@@ -1505,16 +1455,6 @@ mail_session_trust_prompt (CamelSession *session,
return response;
}
-static CamelFilterDriver *
-mail_session_get_filter_driver (CamelSession *session,
- const gchar *type,
- GError **error)
-{
- return (CamelFilterDriver *) mail_call_main (
- MAIL_CALL_p_ppp, (MailMainFunc) main_get_filter_driver,
- session, type, error);
-}
-
static void
mail_session_get_socks_proxy (CamelSession *session,
const gchar *for_host,
@@ -1850,7 +1790,6 @@ e_mail_session_class_init (EMailSessionClass *class)
session_class->forget_password = mail_session_forget_password;
session_class->alert_user = mail_session_alert_user;
session_class->trust_prompt = mail_session_trust_prompt;
- session_class->get_filter_driver = mail_session_get_filter_driver;
session_class->get_socks_proxy = mail_session_get_socks_proxy;
session_class->authenticate_sync = mail_session_authenticate_sync;
session_class->forward_to_sync = mail_session_forward_to_sync;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]