1/*
2 * Copyright 2004-2013, Haiku, Inc. All rights reserved.
3 * Copyright 2001 Dr. Zoidberg Enterprises. All rights reserved.
4 *
5 * Distributed under the terms of the MIT License.
6 */
7#ifndef RULE_FILTER_H
8#define RULE_FILTER_H
9
10
11#include <Message.h>
12#include <List.h>
13#include <MailFilter.h>
14
15#include "MatchHeaderSettings.h"
16#include "StringMatcher.h"
17
18
19class RuleFilter : public BMailFilter {
20public:
21								RuleFilter(BMailProtocol& protocol,
22									const BMailAddOnSettings& settings);
23
24	virtual	BMailFilterAction	HeaderFetched(entry_ref& ref, BFile& file,
25									BMessage& attributes);
26
27private:
28			BString				fAttribute;
29			BString				fExpression;
30			StringMatcher		fMatcher;
31			BString				fMoveTarget;
32			BString				fSetFlags;
33			int32				fReplyAccount;
34			rule_action			fAction;
35};
36
37
38#endif	// RULE_FILTER_H
39