aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2003-12-04 22:11:20 +0800
committerRadek Doulik <rodo@src.gnome.org>2003-12-04 22:11:20 +0800
commit23017711eb711dc8e9296b4ed7a5a24d193fe6f2 (patch)
treef3a413d641c14de671637ef5e37b61034695eb4c /camel/camel-session.c
parent4c1234f54652f4db2ca5a8c01ea371f7ec061258 (diff)
downloadgsoc2013-evolution-23017711eb711dc8e9296b4ed7a5a24d193fe6f2.tar.gz
gsoc2013-evolution-23017711eb711dc8e9296b4ed7a5a24d193fe6f2.tar.zst
gsoc2013-evolution-23017711eb711dc8e9296b4ed7a5a24d193fe6f2.zip
check recent messages for junk mail
2003-12-04 Radek Doulik <rodo@ximian.com> * camel-folder.c (folder_changed): check recent messages for junk mail * camel-session.c (camel_session_check_junk): new wrapper method for check_junk flag (camel_session_set_check_junk): ditto * camel-session.h (struct _CamelSession): added check_junk flag (if to check incoming mail for junk messages) svn path=/trunk/; revision=23629
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 07c6801824..fc31530768 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -870,3 +870,32 @@ void camel_session_thread_wait(CamelSession *session, int id)
CS_CLASS (session)->thread_wait(session, id);
}
+
+/**
+ * camel_session_check_junk:
+ * @session:
+ *
+ * Do we have to check incoming messages to be junk?
+ **/
+gboolean
+camel_session_check_junk (CamelSession *session)
+{
+ g_assert(CAMEL_IS_SESSION(session));
+
+ return session->check_junk;
+}
+
+/**
+ * camel_session_set_check_junk:
+ * @session:
+ * @check_junk:
+ *
+ * Set check_junk flag, if set, incoming mail will be checked for being junk.
+ **/
+void
+camel_session_set_check_junk (CamelSession *session, gboolean check_junk)
+{
+ g_assert(CAMEL_IS_SESSION(session));
+
+ session->check_junk = check_junk;
+}