From 3f9703a3fd35f7d8b835c62869c0db74bd213e2f Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 10 Feb 2010 09:31:53 +0000 Subject: 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 --- libsylph/filter.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libsylph/filter.h') 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, -- cgit v1.2.3