NeoMutt  2021-10-29-225-gb9986f
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 
39 {
43 };
44 
45 void subjrx_init(void);
46 void subjrx_free(void);
47 
48 enum CommandResult parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
49 enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
50 
51 bool subjrx_apply_mods(struct Envelope *env);
52 void subjrx_clear_mods(struct Mailbox *m);
53 
54 #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:55
A mailbox.
Definition: mailbox.h:82
NotifySubjRx
Subject Regex notification types.
Definition: subjectrx.h:39
@ NT_SUBJRX_DELETE
Subject Regex has been deleted.
Definition: subjectrx.h:41
@ NT_SUBJRX_ADD
Subject Regex has been added.
Definition: subjectrx.h:40
@ NT_SUBJRX_DELETE_ALL
All Subject Regexes have been deleted.
Definition: subjectrx.h:42
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