claws-mail/src/scoring.h
2001-11-15 22:41:46 +00:00

39 lines
856 B
C

#ifndef SCORING_H
#define SCORING_H
#include <glib.h>
#include "matcher.h"
#include "procmsg.h"
#define MAX_SCORE 9999
#define MIN_SCORE -9999
struct _ScoringProp {
MatcherList * matchers;
int score;
};
typedef struct _ScoringProp ScoringProp;
extern GSList * global_scoring;
extern gint global_kill_score;
extern gint global_important_score;
ScoringProp * scoringprop_new(MatcherList * matchers, int score);
void scoringprop_free(ScoringProp * prop);
gint scoringprop_score_message(ScoringProp * scoring, MsgInfo * info);
ScoringProp * scoringprop_parse(gchar ** str);
gint score_message(GSList * scoring_list, MsgInfo * info);
void prefs_scoring_write_config(void);
void prefs_scoring_read_config(void);
gchar * scoringprop_to_string(ScoringProp * prop);
void prefs_scoring_clear();
void prefs_scoring_free(GSList * prefs_scoring);
#endif