NeoMutt  2020-06-26-250-g349c94
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 #include <stdint.h>
29 
30 struct Buffer;
31 struct Email;
32 struct Mailbox;
33 
34 /* These Config Variables are only used in score.c */
35 extern short C_ScoreThresholdDelete;
36 extern short C_ScoreThresholdFlag;
37 extern short C_ScoreThresholdRead;
38 
39 void mutt_check_rescore(struct Mailbox *m);
40 enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
41 enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
42 void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx);
43 
44 #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:51
enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;score&#39; command - Implements Command::parse()
Definition: score.c:102
String manipulation buffer.
Definition: buffer.h:33
enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;unscore&#39; command - Implements Command::parse()
Definition: score.c:205
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx)
Apply scoring to an email.
Definition: score.c:173
short C_ScoreThresholdDelete
Config: Messages with a lower score will be automatically deleted.
Definition: score.c:49
A mailbox.
Definition: mailbox.h:81
Definitions of NeoMutt commands.
short C_ScoreThresholdFlag
Config: Messages with a greater score will be automatically flagged.
Definition: score.c:50
void mutt_check_rescore(struct Mailbox *m)
Do the emails need to have their scores recalculated?
Definition: score.c:71