Statistics
| Branch: | Tag: | Revision:

root / lib / filters / blacklist-filter.c @ aebfd4cc

History | View | Annotate | Download (542 Bytes)

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

    
7
#include <glib.h>
8

    
9
#include "filter.h"
10
#include "blacklist-filter.h"
11

    
12

    
13
static XFilterStatus xfilter_blacklist_func(XFilter *filter, const XMessageData *data, XFilterResult *result)
14
{
15
        return XF_NOJUNK;
16
}
17

    
18
XFilter *xfilter_blacklist_new(void)
19
{
20
        XFilter *filter;
21

    
22
        filter = xfilter_new(XF_TEST, "blacklist");
23
        xfilter_set_test_filter_func(X_TEST_FILTER(filter),
24
                                     xfilter_blacklist_func);
25

    
26
        return filter;
27
}