Statistics
| Branch: | Tag: | Revision:

root / lib / filter-private.h @ aebfd4cc

History | View | Annotate | Download (1019 Bytes)

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

    
7
#ifndef __FILTER_PRIVATE_H__
8
#define __FILTER_PRIVATE_H__
9

    
10
#include "filter.h"
11

    
12
struct _XFilterManager
13
{
14
        XFilter *filter_list;
15

    
16
        XMessageData *data;
17

    
18
        char *original_encoding;
19
};
20

    
21
struct _XFilter
22
{
23
        XFilterType type;
24
        char *name;
25
        char *input_mime_types[8];
26
        char *output_mime_type;
27

    
28
        XFilterManager *manager;
29
        XFilter *next;
30
};
31

    
32
struct _XContentFilter
33
{
34
        XFilter filter;
35

    
36
        XFilterStatus (*content_filter_func) (XFilter *filter, const XMessageData *data, XFilterResult *result);
37
};
38

    
39
struct _XTestFilter
40
{
41
        XFilter filter;
42

    
43
        XFilterStatus (*test_filter_func)    (XFilter *filter, const XMessageData *data, XFilterResult *result);
44
};
45

    
46
struct _XMessageData
47
{
48
        char *mime_type;
49

    
50
        char *file;
51
        char *content;
52

    
53
        char *from;
54
        char *to;
55
        char *cc;
56
        char *subject;
57
};
58

    
59
struct _XFilterResult
60
{
61
        XFilterStatus status;
62
        XMessageData *msgdata;
63
        double probability;
64
};
65

    
66
#endif /* __FILTER_PRIVATE_H__ */