NeoMutt  2021-02-05-329-g9e03b7
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 
38 {
41 };
42 
43 void subjrx_init(void);
44 void subjrx_free(void);
45 
46 enum CommandResult parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
47 enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
48 
49 bool subjrx_apply_mods(struct Envelope *env);
50 void subjrx_clear_mods(struct Mailbox *m);
51 
52 #endif /* MUTT_SUBJECTRX_H */
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:180
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
String manipulation buffer.
Definition: buffer.h:33
Subject Regex has been deleted.
Definition: subjectrx.h:40
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
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:39
NotifySubjRx
Subject Regex notification types.
Definition: subjectrx.h:37
A mailbox.
Definition: mailbox.h:81
void subjrx_init(void)
Create new Subject Regex List.
Definition: subjectrx.c:55
Definitions of NeoMutt commands.
The header of an Email.
Definition: envelope.h:54