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