aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-04-02 18:39:20 +0800
committerMilan Crha <mcrha@redhat.com>2012-04-02 18:41:21 +0800
commit4e2f3534aeac36db1b5ad4f21ec21354eecc9b17 (patch)
tree8909513786ca88929d2f7c80389fbd962ad54876 /libemail-engine
parent22f765bbfb22c5fc585601112806981124635d1f (diff)
downloadgsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar.gz
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar.bz2
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar.lz
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar.xz
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.tar.zst
gsoc2013-evolution-4e2f3534aeac36db1b5ad4f21ec21354eecc9b17.zip
Bug #672916 - Spam is not detected automatically
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-session.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 193756f263..0b1625f7c9 100644
--- a/libemail-engine/e-mail-session.c
+++ b/libemail-engine/e-mail-session.c
@@ -860,6 +860,18 @@ mail_session_constructed (GObject *object)
settings, "junk-default-plugin",
object, "junk-filter-name",
G_SETTINGS_BIND_DEFAULT);
+
+ camel_session_set_check_junk (
+ CAMEL_SESSION (session), g_settings_get_boolean (
+ settings, "junk-check-incoming"));
+ g_signal_connect (
+ settings, "changed",
+ G_CALLBACK (mail_session_check_junk_notify), session);
+
+ mail_config_reload_junk_headers (session);
+
+ e_proxy_setup_proxy (session->priv->proxy);
+
g_object_unref (settings);
}
@@ -1545,7 +1557,6 @@ e_mail_session_class_init (EMailSessionClass *class)
static void
e_mail_session_init (EMailSession *session)
{
- GSettings *settings;
GHashTable *junk_filters;
junk_filters = g_hash_table_new (
@@ -1565,21 +1576,6 @@ e_mail_session_init (EMailSession *session)
/* Initialize the EAccount setup. */
e_account_writable (NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD);
-
- settings = g_settings_new ("org.gnome.evolution.mail");
-
- camel_session_set_check_junk (
- CAMEL_SESSION (session), g_settings_get_boolean (
- settings, "junk-check-incoming"));
- g_signal_connect (
- settings, "changed",
- G_CALLBACK (mail_session_check_junk_notify), session);
-
- mail_config_reload_junk_headers (session);
-
- e_proxy_setup_proxy (session->priv->proxy);
-
- g_object_unref (settings);
}
EMailSession *