NeoMutt  2021-02-05-666-ge300cd
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 "mutt_commands.h"
29 
30 struct Buffer;
31 struct Envelope;
32 struct Mailbox;
33 
40 {
44 };
45 
46 void subjrx_init(void);
47 void subjrx_free(void);
48 
49 enum CommandResult parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
50 enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
51 
52 bool subjrx_apply_mods(struct Envelope *env);
53 void subjrx_clear_mods(struct Mailbox *m);
54 
55 #endif /* MUTT_SUBJECTRX_H */
void subjrx_free(void)
Free the Subject Regex List.
Definition: subjectrx.c:46
void subjrx_clear_mods(struct Mailbox *m)
Clear out all modified email subjects.
Definition: subjectrx.c:147
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:34
enum CommandResult parse_subjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;subjectrx&#39; command - Implements Command::parse() -.
Definition: subjectrx.c:164
String manipulation buffer.
Definition: buffer.h:33
Subject Regex has been deleted.
Definition: subjectrx.h:42
bool subjrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition: subjectrx.c:129
Subject Regex has been added.
Definition: subjectrx.h:41
NotifySubjRx
Subject Regex notification types.
Definition: subjectrx.h:39
A mailbox.
Definition: mailbox.h:81
void subjrx_init(void)
Create new Subject Regex List.
Definition: subjectrx.c:55
Definitions of NeoMutt commands.
enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;unsubjectrx&#39; command - Implements Command::parse() -.
Definition: subjectrx.c:181
All Subject Regexes have been deleted.
Definition: subjectrx.h:43
The header of an Email.
Definition: envelope.h:54