summaryrefslogtreecommitdiff
path: root/spamfilter/spamdefinitions.h
blob: 00b2bb050d847136580007d67195537bf4122147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*

"Spam Filter"-Plugin for Miranda IM

Copyright 2003-2006 Heiko Herkenrath

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 ("SpamFilter-License.txt"); if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

#ifndef SF_SPAMDEFINITIONS_H__
#define SF_SPAMDEFINITIONS_H__ 1


// -- Defines
#define SDID_CUSTOM_BADWORDS				0
#define SDID_CUSTOM_GOODWORDS				1
#define SDID_CUSTOM_DISLIKEDWORDS			2
#define SDID_BADWORDS						3
#define SDID_HOAXTEXTS						4
#define SDID_TEASERTEXTS					5
#define SDID_URLTLDS						6
#define SDID_PHONENUMBERS					7
#define SDID_SPECIALCHARS_REPLACE_TEXT		8
#define SDID_SPECIALCHARS_REPLACE_NUMBERS	9
#define SDID_SPECIALCHARS_SEPARATORS		10
#define SDID_SPAMMERS						11

#define SDID_CUSTOMMAX						2
#define SDID_MAX							11


// -- Callbacks
typedef BOOL (CALLBACK* SPAMDEFINITIONS_ENUMPROC)(UINT uSpamDefID, WCHAR* pszFilePath, WCHAR* pszName, SYSTEMTIME* pstDate, WPARAM wParam, LPARAM lParam);

// -- Prototypes
BOOL GetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID);
BOOL SetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID, HWND hwndDlg);

BOOL IsSpamDefinitionDataPresent(UINT uSpamDefID);
BOOL EnumSpamDefinitions(UINT uSpamDefID, BOOL AtLeastOneTime, SPAMDEFINITIONS_ENUMPROC psdenump, WPARAM wParam, LPARAM lParam);

void ToggleSpamDefinitionsCache(BOOL bEnable);

void InitSpamDefinitions(void);
void UninitSpamDefinitions(void);

#endif // SF_SPAMDEFINITIONS_H__