aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-message-search.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-09-08 02:34:15 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-09-08 02:34:15 +0800
commite6dd871ad745483444c5ce8361a9b02313ee5a8b (patch)
tree5b58bbcfa5b12e6dc44ae91ed6fad37fc08906fe /filter/filter-message-search.c
parent0db696fa4205edb578c56cade278061b4bbe54f2 (diff)
downloadgsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar.gz
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar.bz2
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar.lz
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar.xz
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.tar.zst
gsoc2013-evolution-e6dd871ad745483444c5ce8361a9b02313ee5a8b.zip
Rewrote - this shouldn't need to be an async function
2000-09-07 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c (filter_driver_run): Rewrote - this shouldn't need to be an async function * filter-message-search.c (match_all): Modified to look at the boolean value being fed to it and just to return that instead of always returning TRUE svn path=/trunk/; revision=5236
Diffstat (limited to 'filter/filter-message-search.c')
-rw-r--r--filter/filter-message-search.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/filter/filter-message-search.c b/filter/filter-message-search.c
index a55a7f5c4d..4fad81cdf5 100644
--- a/filter/filter-message-search.c
+++ b/filter/filter-message-search.c
@@ -52,11 +52,11 @@ static struct {
{ "match-all", (ESExpFunc *) match_all, 0 },
{ "body-contains", (ESExpFunc *) body_contains, 0 },
{ "header-contains", (ESExpFunc *) header_contains, 0 },
- { "user-tag", (ESExpFunc *) user_tag, 1 },
- { "user-flag", (ESExpFunc *) user_flag, 1 },
- { "get-sent-date", (ESExpFunc *) get_sent_date, 1 },
- { "get-received-date", (ESExpFunc *) get_received_date, 1 },
- { "get-current-date", (ESExpFunc *) get_current_date, 1 }
+ { "user-tag", (ESExpFunc *) user_tag, 0 },
+ { "user-flag", (ESExpFunc *) user_flag, 0 },
+ { "get-sent-date", (ESExpFunc *) get_sent_date, 0 },
+ { "get-received-date", (ESExpFunc *) get_received_date, 0 },
+ { "get-current-date", (ESExpFunc *) get_current_date, 0 }
};
static ESExpResult *
@@ -84,12 +84,15 @@ header_contains (struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterM
static ESExpResult *
match_all (struct _ESExp *f, int argc, struct _ESExpTerm **argv, FilterMessageSearch *fms)
{
+ /* FIXME: is this right? I dunno */
/* match-all: when dealing with single messages is a no-op */
ESExpResult *r;
- /* FIXME: is this right?? */
r = e_sexp_result_new (ESEXP_RES_BOOL);
- r->value.bool = TRUE;
+ if (argv[0]->type == ESEXP_RES_BOOL)
+ r->value.bool = argv[0]->value.bool;
+ else
+ r->value.bool = FALSE;
return r;
}