aboutsummaryrefslogtreecommitdiff
path: root/libsylph/filter.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-10 09:31:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-10 09:31:53 +0000
commit3f9703a3fd35f7d8b835c62869c0db74bd213e2f (patch)
treeacbaf735dc3a1d98d0322f6a5634ea51c7c1b707 /libsylph/filter.h
parent6ab1d3cf538aa7f6c5385f7010e9a2d7e71b8dc0 (diff)
added a new filter match type: is (not) in addressbook.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2461 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/filter.h')
-rw-r--r--libsylph/filter.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libsylph/filter.h b/libsylph/filter.h
index 132810f5..35c43c70 100644
--- a/libsylph/filter.h
+++ b/libsylph/filter.h
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2010 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -58,7 +58,8 @@ typedef enum
{
FLT_CONTAIN,
FLT_EQUAL,
- FLT_REGEX
+ FLT_REGEX,
+ FLT_IN_ADDRESSBOOK
} FilterMatchType;
typedef enum
@@ -110,6 +111,8 @@ typedef enum
#define FLT_IS_NOT_MATCH(flag) ((flag & FLT_NOT_MATCH) != 0)
#define FLT_IS_CASE_SENS(flag) ((flag & FLT_CASE_SENS) != 0)
+typedef gboolean (*FilterInAddressBookFunc) (const gchar *address);
+
struct _FilterCond
{
FilterCondType type;
@@ -193,6 +196,10 @@ void filter_write_config (void);
gchar *filter_get_str (FilterRule *rule);
FilterRule *filter_read_str (const gchar *str);
+void filter_set_addressbook_func (FilterInAddressBookFunc func);
+FilterInAddressBookFunc filter_get_addressbook_func
+ (void);
+
FilterRule *filter_rule_new (const gchar *name,
FilterBoolOp bool_op,
GSList *cond_list,