Routines for adding user scores to emails. More...
#include "config.h"
#include <stdbool.h>
#include <stdlib.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "mutt.h"
#include "score.h"
#include "pattern/lib.h"
#include "init.h"
#include "keymap.h"
#include "mutt_commands.h"
#include "mutt_globals.h"
#include "mutt_menu.h"
#include "options.h"
#include "protos.h"
#include "sort.h"
Go to the source code of this file.
Data Structures | |
struct | Score |
Scoring rule for email. More... | |
Functions | |
void | mutt_check_rescore (struct Mailbox *m) |
Do the emails need to have their scores recalculated? More... | |
enum CommandResult | mutt_parse_score (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'score' command - Implements Command::parse() More... | |
void | mutt_score_message (struct Mailbox *m, struct Email *e, bool upd_mbox) |
Apply scoring to an email. More... | |
enum CommandResult | mutt_parse_unscore (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'unscore' command - Implements Command::parse() More... | |
Variables | |
short | C_ScoreThresholdDelete |
Config: Messages with a lower score will be automatically deleted. More... | |
short | C_ScoreThresholdFlag |
Config: Messages with a greater score will be automatically flagged. More... | |
short | C_ScoreThresholdRead |
Config: Messages with a lower score will be automatically marked read. More... | |
static struct Score * | ScoreList = NULL |
Routines for adding user scores to emails.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file score.c.
void mutt_check_rescore | ( | struct Mailbox * | m | ) |
Do the emails need to have their scores recalculated?
m | Mailbox |
Definition at line 71 of file score.c.
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 at line 102 of file score.c.
Apply scoring to an email.
Definition at line 173 of file score.c.
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 at line 205 of file score.c.
short C_ScoreThresholdDelete |
short C_ScoreThresholdFlag |
short C_ScoreThresholdRead |