Statistics
| Branch: | Tag: | Revision:

root / lib / filters / bayes-filter.h @ aebfd4cc

History | View | Annotate | Download (886 Bytes)

1
/* SylFilter - a message filter
2
 *
3
 * Copyright (C) 2011 Hiroyuki Yamamoto
4
 * Copyright (C) 2011 Sylpheed Development Team
5
 */
6

    
7
#ifndef __XFILTER_BAYES_H__
8
#define __XFILTER_BAYES_H__
9

    
10
#include "filter.h"
11

    
12
typedef struct _XFilterBayesLearnStatus
13
{
14
        int junk_words;
15
        int nojunk_words;
16
        int junk_learned_num;
17
        int nojunk_learned_num;
18
} XFilterBayesLearnStatus;
19

    
20
XFilter *xfilter_bayes_new(void);
21
XFilter *xfilter_bayes_learn_junk_new(void);
22
XFilter *xfilter_bayes_learn_nojunk_new(void);
23
XFilter *xfilter_bayes_unlearn_junk_new(void);
24
XFilter *xfilter_bayes_unlearn_nojunk_new(void);
25

    
26
int xfilter_bayes_get_learn_status(XFilterBayesLearnStatus *status);
27
int xfilter_bayes_reset_learn_count(void);
28
int xfilter_bayes_reset_all(void);
29

    
30
int xfilter_bayes_db_show_contents(void);
31

    
32
int xfilter_bayes_db_init(const char *path);
33
int xfilter_bayes_db_done(void);
34

    
35
#endif /* __XFILTER_BAYES_H__ */