Statistics
| Branch: | Tag: | Revision:

root / lib / filter-private.h @ 8d7dcace

History | View | Annotate | Download (892 Bytes)

1

    
2
#ifndef __FILTER_PRIVATE_H__
3
#define __FILTER_PRIVATE_H__
4

    
5
#include "filter.h"
6

    
7
struct _XFilterManager
8
{
9
        XFilter *filter_list;
10

    
11
        XMessageData *data;
12

    
13
        char *original_encoding;
14
};
15

    
16
struct _XFilter
17
{
18
        XFilterType type;
19
        char *name;
20
        char *input_mime_types[8];
21
        char *output_mime_type;
22

    
23
        XFilterManager *manager;
24
        XFilter *next;
25
};
26

    
27
struct _XContentFilter
28
{
29
        XFilter filter;
30

    
31
        XFilterStatus (*content_filter_func) (XFilter *filter, const XMessageData *data, XFilterResult *result);
32
};
33

    
34
struct _XTestFilter
35
{
36
        XFilter filter;
37

    
38
        XFilterStatus (*test_filter_func)    (XFilter *filter, const XMessageData *data, XFilterResult *result);
39
};
40

    
41
struct _XMessageData
42
{
43
        char *mime_type;
44

    
45
        char *file;
46
        char *content;
47

    
48
        char *from;
49
        char *to;
50
        char *cc;
51
        char *subject;
52
};
53

    
54
struct _XFilterResult
55
{
56
        XFilterStatus status;
57
        XMessageData *msgdata;
58
        double probability;
59
};
60

    
61
#endif /* __FILTER_PRIVATE_H__ */