aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-01-24 01:16:47 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-01-24 01:16:47 +0800
commit11d2ccf165bbe36403fa59e71725a12ec8614d61 (patch)
tree6574793863119dd8099c0529412bac3c7717f2f6 /camel/camel-session.c
parent908f4d83e970732eeb2e4eda809fa9cf94327a3c (diff)
downloadgsoc2013-evolution-11d2ccf165bbe36403fa59e71725a12ec8614d61.tar.gz
gsoc2013-evolution-11d2ccf165bbe36403fa59e71725a12ec8614d61.tar.zst
gsoc2013-evolution-11d2ccf165bbe36403fa59e71725a12ec8614d61.zip
use check_junk_for_imap flag
2004-01-23 Radek Doulik <rodo@ximian.com> * camel-folder.c (folder_changed): use check_junk_for_imap flag * camel-session.c: add check_junk_for_imap flag svn path=/trunk/; revision=24381
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 b7d86c571a..0e5efa1d9c 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -904,3 +904,32 @@ camel_session_set_check_junk (CamelSession *session, gboolean check_junk)
session->check_junk = check_junk;
}
+
+/**
+ * camel_session_check_junk_for_imap
+ * @session:
+ *
+ * Do we have to check IMAP incoming messages to be junk?
+ **/
+gboolean
+camel_session_check_junk_for_imap (CamelSession *session)
+{
+ g_assert(CAMEL_IS_SESSION(session));
+
+ return session->check_junk_for_imap;
+}
+
+/**
+ * camel_session_set_check_junk_for_imap:
+ * @session:
+ * @check_junk_for_imap:
+ *
+ * Set check_junk_for_imap flag, if set, incoming IMAP mail will be checked for being junk.
+ **/
+void
+camel_session_set_check_junk_for_imap (CamelSession *session, gboolean check_junk_for_imap)
+{
+ g_assert(CAMEL_IS_SESSION(session));
+
+ session->check_junk_for_imap = check_junk_for_imap;
+}