aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-filter-search.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-23 07:32:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-23 07:32:34 +0800
commit978bfbefbb3386979d93c5ef7d6294edaf3dd97b (patch)
tree1201d95004085e8ce9bface9eff5bfc42e57e6b2 /camel/camel-filter-search.c
parent0af3e545203107534c7dac6dae0c8f7a009a7fe3 (diff)
downloadgsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar.gz
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar.bz2
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar.lz
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar.xz
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.tar.zst
gsoc2013-evolution-978bfbefbb3386979d93c5ef7d6294edaf3dd97b.zip
Implement a pseudo-header "x-camel-mlist" which just looks up in the
2001-02-23 Not Zed <NotZed@Ximian.com> * camel-filter-search.c (check_header): Implement a pseudo-header "x-camel-mlist" which just looks up in the message info for a match. * camel-folder-search.c (check_header): Add pseudo-header "x-camel-mlist" which can be used to match on mailing list. svn path=/trunk/; revision=8355
Diffstat (limited to 'camel/camel-filter-search.c')
-rw-r--r--camel/camel-filter-search.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/camel/camel-filter-search.c b/camel/camel-filter-search.c
index b7590fe197..a680c26146 100644
--- a/camel/camel-filter-search.c
+++ b/camel/camel-filter-search.c
@@ -104,7 +104,13 @@ check_header(struct _ESExp *f, int argc, struct _ESExpResult **argv, FilterMessa
int i;
if (argc > 1 && argv[0]->type == ESEXP_RES_STRING) {
- const char *header = camel_medium_get_header (CAMEL_MEDIUM (fms->message), argv[0]->value.string);
+ char *name = argv[0]->value.string;
+ const char *header;
+
+ if (strcasecmp(name, "x-camel-mlist") == 0)
+ header = camel_message_info_mlist(fms->info);
+ else
+ header = camel_medium_get_header (CAMEL_MEDIUM (fms->message), argv[0]->value.string);
if (header) {
for (i=1;i<argc && !matched;i++) {