Statistics
| Branch: | Tag: | Revision:

root / lib / filters / blacklist-filter.c @ 4012ec30

History | View | Annotate | Download (391 Bytes)

1
#include <glib.h>
2

    
3
#include "filter.h"
4
#include "blacklist-filter.h"
5

    
6

    
7
static XFilterStatus xfilter_blacklist_func(XFilter *filter, const XMessageData *data)
8
{
9
        return XF_NOJUNK;
10
}
11

    
12
XFilter *xfilter_blacklist_new(void)
13
{
14
        XFilter *filter;
15

    
16
        filter = xfilter_new(XF_TEST, "blacklist");
17
        xfilter_set_test_filter_func(X_TEST_FILTER(filter),
18
                                     xfilter_blacklist_func);
19

    
20
        return filter;
21
}