claws-mail/src/scoring.h
Colin Leroy ae75ac2b18 copy scoring when moving a folder
yeah, all done :)
2002-11-08 21:17:39 +00:00

39 lines
905 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);
ScoringProp * scoringprop_copy(ScoringProp *src);
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