From 534b71582b08ff42de90a434aa1ce04587b1e0f8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 7 Sep 2000 02:58:59 +0000 Subject: Totally rewritten to filter a single message at a time instead of 2000-09-06 Jeffrey Stedfast * filter-driver.c (filter_driver_run): Totally rewritten to filter a single message at a time instead of filtering a folder. * filter-message-search.c (filter_message_search): New convenience function for searching a message. svn path=/trunk/; revision=5224 --- filter/filter-message-search.h | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 filter/filter-message-search.h (limited to 'filter/filter-message-search.h') diff --git a/filter/filter-message-search.h b/filter/filter-message-search.h new file mode 100644 index 0000000000..ce9cc57c52 --- /dev/null +++ b/filter/filter-message-search.h @@ -0,0 +1,43 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Authors: Jeffrey Stedfast + * + * Copyright 2000 Helix Code, Inc. (www.helixcode.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA. + * + */ + +#ifndef FILTER_MESSAGE_SEARCH_H +#define FILTER_MESSAGE_SEARCH_H + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus */ + +#include +#include +#include +#include + +gboolean filter_message_search (CamelMimeMessage *message, CamelMessageInfo *info, + const char *expression, CamelException *ex); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* ! FILTER_MESSAGE_SEARCH_H */ -- cgit v1.2.3