NeoMutt  2019-12-07-168-gc45f47
Teaching an old dog new tricks
DOXYGEN
score.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_SCORE_H
24 #define MUTT_SCORE_H
25 
26 #include <stdbool.h>
27 #include "mutt_commands.h"
28 
29 struct Buffer;
30 struct Email;
31 struct Mailbox;
32 
33 /* These Config Variables are only used in score.c */
34 extern short C_ScoreThresholdDelete;
35 extern short C_ScoreThresholdFlag;
36 extern short C_ScoreThresholdRead;
37 
38 void mutt_check_rescore(struct Mailbox *m);
39 enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
40 enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err);
41 void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx);
42 
43 #endif /* MUTT_SCORE_H */
The envelope/body of an email.
Definition: email.h:37
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:33
short C_ScoreThresholdRead
Config: Messages with a lower score will be automatically marked read.
Definition: score.c:50
String manipulation buffer.
Definition: buffer.h:33
enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err)
Parse the &#39;score&#39; command - Implements command_t.
Definition: score.c:101
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx)
Apply scoring to an email.
Definition: score.c:173
enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, unsigned long data, struct Buffer *err)
Parse the &#39;unscore&#39; command - Implements command_t.
Definition: score.c:205
short C_ScoreThresholdDelete
Config: Messages with a lower score will be automatically deleted.
Definition: score.c:48
A mailbox.
Definition: mailbox.h:80
Definitions of NeoMutt commands.
short C_ScoreThresholdFlag
Config: Messages with a greater score will be automatically flagged.
Definition: score.c:49
void mutt_check_rescore(struct Mailbox *m)
Do the emails need to have their scores recalculated?
Definition: score.c:70