NeoMutt  2024-04-25-100-gcb3684
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
30struct Buffer;
31struct Envelope;
32struct MailboxView;
33
42{
46};
47
48void subjrx_init(void);
49void subjrx_cleanup(void);
50
51enum CommandResult parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
52enum CommandResult parse_unsubjectrx_list(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
53
54bool subjrx_apply_mods(struct Envelope *env);
55void subjrx_clear_mods(struct MailboxView *mv);
56
57#endif /* MUTT_SUBJECTRX_H */
CommandResult
Error codes for command_t parse functions.
Definition: command.h:36
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:188
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:171
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:42
@ NT_SUBJRX_DELETE
Subject Regex has been deleted.
Definition: subjectrx.h:44
@ NT_SUBJRX_ADD
Subject Regex has been added.
Definition: subjectrx.h:43
@ NT_SUBJRX_DELETE_ALL
All Subject Regexes have been deleted.
Definition: subjectrx.h:45
void subjrx_init(void)
Create new Subject Regex List.
Definition: subjectrx.c:55
void subjrx_clear_mods(struct MailboxView *mv)
Clear out all modified email subjects.
Definition: subjectrx.c:152
void subjrx_cleanup(void)
Free the Subject Regex List.
Definition: subjectrx.c:46
bool subjrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition: subjectrx.c:133