NeoMutt  2022-04-29-145-g9b6a0e
Teaching an old dog new tricks
DOXYGEN
subjectrx.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_SUBJECTRX_H
24 #define MUTT_SUBJECTRX_H
25 
26 #include <stdbool.h>
27 #include <stdint.h>
28 #include "core/lib.h"
29 
30 struct Buffer;
31 struct Envelope;
32 
41 {
45 };
46 
47 void subjrx_init(void);
48 void subjrx_free(void);
49 
50 enum CommandResult parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
51 enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
52 
53 bool subjrx_apply_mods(struct Envelope *env);
54 void subjrx_clear_mods(struct Mailbox *m);
55 
56 #endif /* MUTT_SUBJECTRX_H */
CommandResult
Error codes for command_t parse functions.
Definition: command.h:34
Convenience wrapper for the core headers.
enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unsubjectrx' command - Implements Command::parse() -.
Definition: subjectrx.c:180
enum CommandResult parse_subjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'subjectrx' command - Implements Command::parse() -.
Definition: subjectrx.c:163
String manipulation buffer.
Definition: buffer.h:34
The header of an Email.
Definition: envelope.h:57
A mailbox.
Definition: mailbox.h:79
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 Mailbox *m)
Clear out all modified email subjects.
Definition: subjectrx.c:146
bool subjrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition: subjectrx.c:128
void subjrx_free(void)
Free the Subject Regex List.
Definition: subjectrx.c:45