NeoMutt  2025-12-11-58-g09398d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
subjectrx.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_SUBJECTRX_H
24#define MUTT_SUBJECTRX_H
25
26#include <stdbool.h>
27#include "core/lib.h"
28
29struct Buffer;
30struct Envelope;
31struct MailboxView;
32
46
47void subjrx_init(void);
48void subjrx_cleanup(void);
49
50enum CommandResult parse_subjectrx_list (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
51enum CommandResult parse_unsubjectrx_list(const struct Command *cmd, struct Buffer *line, struct Buffer *err);
52
53bool subjrx_apply_mods(struct Envelope *env);
54void subjrx_clear_mods(struct MailboxView *mv);
55
56#endif /* MUTT_SUBJECTRX_H */
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
Convenience wrapper for the core headers.
enum CommandResult parse_unsubjectrx_list(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'unsubjectrx' command - Implements Command::parse() -.
Definition subjectrx.c:218
enum CommandResult parse_subjectrx_list(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'subjectrx' command - Implements Command::parse() -.
Definition subjectrx.c:192
String manipulation buffer.
Definition buffer.h:36
The header of an Email.
Definition envelope.h:57
View of a Mailbox.
Definition mview.h:40
NotifySubjRx
Subject Regex notification types.
Definition subjectrx.h:41
@ NT_SUBJRX_DELETE
Subject Regex has been deleted.
Definition subjectrx.h:43
@ NT_SUBJRX_ADD
Subject Regex has been added.
Definition subjectrx.h:42
@ NT_SUBJRX_DELETE_ALL
All Subject Regexes have been deleted.
Definition subjectrx.h:44
void subjrx_init(void)
Create new Subject Regex List.
Definition subjectrx.c:54
void subjrx_clear_mods(struct MailboxView *mv)
Clear out all modified email subjects.
Definition subjectrx.c:170
void subjrx_cleanup(void)
Free the Subject Regex List.
Definition subjectrx.c:45
bool subjrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition subjectrx.c:151