NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
subjectrx.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_INDEX_SUBJECTRX_H
24#define MUTT_INDEX_SUBJECTRX_H
25
26#include <stdbool.h>
27#include "core/lib.h"
28
29struct Buffer;
30struct Envelope;
31struct IndexModuleData;
32struct MailboxView;
33struct ParseContext;
34struct ParseError;
35
49
50void subjectrx_init (struct NeoMutt *n, struct IndexModuleData *md);
51void subjectrx_cleanup(struct IndexModuleData *md);
52
53enum CommandResult parse_subjectrx_list (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
54enum CommandResult parse_unsubjectrx_list(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
55
56bool subjectrx_apply_mods(struct Envelope *env);
57void subjectrx_clear_mods(struct MailboxView *mv);
58
59#endif /* MUTT_INDEX_SUBJECTRX_H */
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
Convenience wrapper for the core headers.
enum CommandResult parse_unsubjectrx_list(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unsubject-regex' command - Implements Command::parse() -.
Definition subjectrx.c:224
enum CommandResult parse_subjectrx_list(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'subject-regex' command - Implements Command::parse() -.
Definition subjectrx.c:192
String manipulation buffer.
Definition buffer.h:36
The header of an Email.
Definition envelope.h:57
Index private Module data.
Definition module_data.h:32
View of a Mailbox.
Definition mview.h:40
Container for Accounts, Notifications.
Definition neomutt.h:41
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34
void subjectrx_init(struct NeoMutt *n, struct IndexModuleData *md)
Create new Subject Regex List.
Definition subjectrx.c:42
void subjectrx_cleanup(struct IndexModuleData *md)
Free the Subject Regex List.
Definition subjectrx.c:53
void subjectrx_clear_mods(struct MailboxView *mv)
Clear out all modified email subjects.
Definition subjectrx.c:170
NotifySubjectRx
Subject Regex notification types.
Definition subjectrx.h:44
@ NT_SUBJECTRX_DELETE
Subject Regex has been deleted.
Definition subjectrx.h:46
@ NT_SUBJECTRX_DELETE_ALL
All Subject Regexes have been deleted.
Definition subjectrx.h:47
@ NT_SUBJECTRX_ADD
Subject Regex has been added.
Definition subjectrx.h:45
bool subjectrx_apply_mods(struct Envelope *env)
Apply regex modifications to the subject.
Definition subjectrx.c:148