aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-context.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-01-08 19:09:02 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-01-08 19:09:02 +0800
commit37362c7b255ab1b932db1c9e41da146dd43abfa7 (patch)
tree77ee9e72512aa9025a79cb59ff3bcf3a6a6e138e /filter/rule-context.c
parent8d10a9b54423f8d4bffd2bd9412360a71c859117 (diff)
downloadgsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar.gz
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar.bz2
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar.lz
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar.xz
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.tar.zst
gsoc2013-evolution-37362c7b255ab1b932db1c9e41da146dd43abfa7.zip
** Fix for bug #339879
2009-01-08 Milan Crha <mcrha@redhat.com> ** Fix for bug #339879 * filter/filter-code.h: (filter_code_new): * filter/filter-code.c: (filter_code_new), (build_code): * filter/rule-context.c: (new_element): Have two types of code expression, one "code", which adds also a "match-all" into the expression, and a "rawcode" without it. * addressbook/gui/widgets/addresstypes.xml: Use "rawcode" instead of "code" to have not added a "match-all" into the expression. svn path=/trunk/; revision=37014
Diffstat (limited to 'filter/rule-context.c')
-rw-r--r--filter/rule-context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/rule-context.c b/filter/rule-context.c
index 304d230568..cc81513784 100644
--- a/filter/rule-context.c
+++ b/filter/rule-context.c
@@ -906,7 +906,9 @@ new_element(RuleContext *rc, const char *type)
/* FIXME: temporary ... need real address type */
return (FilterElement *) filter_input_new_type_name (type);
} else if (!strcmp (type, "code")) {
- return (FilterElement *) filter_code_new ();
+ return (FilterElement *) filter_code_new (FALSE);
+ } else if (!strcmp (type, "rawcode")) {
+ return (FilterElement *) filter_code_new (TRUE);
} else if (!strcmp (type, "colour")) {
return (FilterElement *) filter_colour_new ();
} else if (!strcmp (type, "optionlist")) {