NeoMutt  2022-04-29-215-gc12b98
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 "core/lib.h"
29
30struct Buffer;
31struct Email;
32
33void mutt_check_rescore(struct Mailbox *m);
34enum CommandResult mutt_parse_score(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
35enum CommandResult mutt_parse_unscore(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
36void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx);
37
38#endif /* MUTT_SCORE_H */
CommandResult
Error codes for command_t parse functions.
Definition: command.h:34
Convenience wrapper for the core headers.
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:195
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:86
void mutt_check_rescore(struct Mailbox *m)
Do the emails need to have their scores recalculated?
Definition: score.c:63
void mutt_score_message(struct Mailbox *m, struct Email *e, bool upd_ctx)
Apply scoring to an email.
Definition: score.c:159
String manipulation buffer.
Definition: buffer.h:34
The envelope/body of an email.
Definition: email.h:37
A mailbox.
Definition: mailbox.h:79