NeoMutt  2021-02-05-666-ge300cd
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 void mutt_check_rescore(struct Mailbox *m);
35 enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
36 enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
37 void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx);
38 
39 #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:34
String manipulation buffer.
Definition: buffer.h:33
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:88
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx)
Apply scoring to an email.
Definition: score.c:161
A mailbox.
Definition: mailbox.h:81
Definitions of NeoMutt commands.
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:200
void mutt_check_rescore(struct Mailbox *m)
Do the emails need to have their scores recalculated?
Definition: score.c:65