NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
alternates.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_ALIAS_ALTERNATES_H
24
#define MUTT_ALIAS_ALTERNATES_H
25
26
#include <stdbool.h>
27
#include "
core/lib.h
"
28
29
struct
Buffer
;
30
struct
MailboxView
;
31
struct
ParseContext
;
32
struct
ParseError
;
33
41
enum
NotifyAlternates
42
{
43
NT_ALTERN_ADD
= 1,
44
NT_ALTERN_DELETE
,
45
NT_ALTERN_DELETE_ALL
,
46
};
47
48
enum
CommandResult
parse_alternates
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
49
enum
CommandResult
parse_unalternates
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
50
51
bool
mutt_alternates_match
(
const
char
*addr);
52
void
mutt_alternates_reset
(
struct
MailboxView
*mv);
53
54
#endif
/* MUTT_ALIAS_ALTERNATES_H */
mutt_alternates_match
bool mutt_alternates_match(const char *addr)
Compare an Address to the un/alternates lists.
Definition
alternates.c:164
mutt_alternates_reset
void mutt_alternates_reset(struct MailboxView *mv)
Clear the recipient valid flag of all emails.
Definition
alternates.c:46
NotifyAlternates
NotifyAlternates
Alternates command notification types.
Definition
alternates.h:42
NT_ALTERN_ADD
@ NT_ALTERN_ADD
Alternate address has been added.
Definition
alternates.h:43
NT_ALTERN_DELETE
@ NT_ALTERN_DELETE
Alternate address has been deleted.
Definition
alternates.h:44
NT_ALTERN_DELETE_ALL
@ NT_ALTERN_DELETE_ALL
All Alternate addresses have been deleted.
Definition
alternates.h:45
CommandResult
CommandResult
Error codes for command_t parse functions.
Definition
command.h:37
lib.h
Convenience wrapper for the core headers.
parse_alternates
enum CommandResult parse_alternates(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'alternates' command - Implements Command::parse() -.
Definition
alternates.c:68
parse_unalternates
enum CommandResult parse_unalternates(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unalternates' command - Implements Command::parse() -.
Definition
alternates.c:119
Buffer
String manipulation buffer.
Definition
buffer.h:36
Command
Definition
command.h:161
MailboxView
View of a Mailbox.
Definition
mview.h:40
ParseContext
Context for config parsing (history/backtrace).
Definition
pcontext.h:34
ParseError
Detailed error information from config parsing.
Definition
perror.h:34