NeoMutt  2025-12-11-58-g09398d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
alternates.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_ALTERNATES_H
24#define MUTT_ALTERNATES_H
25
26#include <stdbool.h>
27#include "core/lib.h"
28
29struct Buffer;
30struct MailboxView;
31
45
46void alternates_init(void);
47void alternates_cleanup(void);
48
49enum CommandResult parse_alternates (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
50enum CommandResult parse_unalternates(const struct Command *cmd, struct Buffer *line, struct Buffer *err);
51
52bool mutt_alternates_match(const char *addr);
53void mutt_alternates_reset(struct MailboxView *mv);
54
55#endif /* MUTT_ALTERNATES_H */
void alternates_cleanup(void)
Free the alternates lists.
Definition alternates.c:48
void alternates_init(void)
Set up the alternates lists.
Definition alternates.c:59
bool mutt_alternates_match(const char *addr)
Compare an Address to the Un/Alternates lists.
Definition alternates.c:180
void mutt_alternates_reset(struct MailboxView *mv)
Clear the recipient valid flag of all emails.
Definition alternates.c:72
NotifyAlternates
Alternates command notification types.
Definition alternates.h:40
@ NT_ALTERN_ADD
Alternate address has been added.
Definition alternates.h:41
@ NT_ALTERN_DELETE
Alternate address has been deleted.
Definition alternates.h:42
@ NT_ALTERN_DELETE_ALL
All Alternate addresses have been deleted.
Definition alternates.h:43
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
Convenience wrapper for the core headers.
enum CommandResult parse_alternates(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'alternates' command - Implements Command::parse() -.
Definition alternates.c:94
enum CommandResult parse_unalternates(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'unalternates' command - Implements Command::parse() -.
Definition alternates.c:140
String manipulation buffer.
Definition buffer.h:36
View of a Mailbox.
Definition mview.h:40