NeoMutt  2021-02-05-89-gabe350
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 <stdint.h>
28 #include "mutt_commands.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 */
Mailbox
A mailbox.
Definition: mailbox.h:81
mutt_check_rescore
void mutt_check_rescore(struct Mailbox *m)
Do the emails need to have their scores recalculated?
Definition: score.c:71
Buffer
String manipulation buffer.
Definition: buffer.h:33
CommandResult
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:34
mutt_score_message
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx)
Apply scoring to an email.
Definition: score.c:173
C_ScoreThresholdDelete
short C_ScoreThresholdDelete
Config: Messages with a lower score will be automatically deleted.
Definition: score.c:49
C_ScoreThresholdRead
short C_ScoreThresholdRead
Config: Messages with a lower score will be automatically marked read.
Definition: score.c:51
C_ScoreThresholdFlag
short C_ScoreThresholdFlag
Config: Messages with a greater score will be automatically flagged.
Definition: score.c:50
mutt_commands.h
Email
The envelope/body of an email.
Definition: email.h:37
mutt_parse_unscore
enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unscore' command - Implements Command::parse()
Definition: score.c:205
mutt_parse_score
enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'score' command - Implements Command::parse()
Definition: score.c:102