Macros | Enumerations | Functions
filter.c File Reference

Article filtering. More...

Go to the source code of this file.

Macros

#define MAIN_ERR_PREFIX   "FILTER: "
 Message prefix for FILTER module.
 
#define FILTER_PERM   (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR)
 Permissions for score file.
 
Score limits

Type must be int . Minimum and maximum values are INT_MIN and INT_MAX .

#define FILTER_SCORE_MAX   INT_MAX
 
#define FILTER_SCORE_MIN   INT_MIN
 

Enumerations

enum  filter_rule_type {
  SCORE_TYPE_UNKNOWN = 0, SCORE_TYPE_FROM = 1, SCORE_TYPE_FROM_ERE = 2, SCORE_TYPE_SUBJECT = 3,
  SCORE_TYPE_SUBJECT_ERE = 4, SCORE_TYPE_MSGID_ERE = 5, SCORE_TYPE_GROUP = 6, SCORE_END_OF_LIST = 7
}
 

Functions

int filter_init (int utf8)
 Initialize filter module. More...
 
void filter_exit (void)
 Shutdown filter module. More...
 
int filter_check_testgroup (const char *group)
 Check for test group. More...
 
int filter_match_own (const struct core_hierarchy_element *he)
 Check for own article. More...
 
int filter_match_reply_to_own (const struct core_hierarchy_element *he)
 Check for reply to own article. More...
 
int filter_get_score (const struct core_hierarchy_element *he)
 Get article score. More...
 
enum filter_cs filter_get_locale_ctype (void)
 Get codeset of locale category LC_CTYPE. More...
 

Detailed Description

Article filtering.

Copyright (c) 2012-2020 by the developers. See the LICENSE file for details.

If nothing else is specified, function return zero to indicate success and a negative value to indicate an error.

Definition in file filter.c.


Generated at 2024-04-27 using  doxygen