Convenience wrapper for the config headers.
bool account_mailbox_remove(struct Account *a, struct Mailbox *m)
Remove a Mailbox from an Account.
struct Account * account_new(const char *name, struct ConfigSubset *sub)
Create a new Account.
bool account_mailbox_add(struct Account *a, struct Mailbox *m)
Add a Mailbox to an Account.
void account_free(struct Account **ptr)
Free an Account.
@ NT_ACCOUNT_DELETE
Account is about to be deleted.
bool mailbox_set_subset(struct Mailbox *m, struct ConfigSubset *sub)
Set a Mailbox's Config Subset.
void mailbox_free(struct Mailbox **ptr)
Free a Mailbox.
const char * mailbox_get_type_name(enum MailboxType type)
Get the type of a Mailbox.
@ NT_MAILBOX_DELETE_ALL
All Mailboxes are about to be deleted.
@ NT_MAILBOX_ADD
Mailbox has been added.
@ MUTT_UNKNOWN
Mailbox wasn't recognised.
#define mutt_debug(LEVEL,...)
@ LL_NOTIFY
Log of notifications.
#define MUTT_MEM_CALLOC(n, type)
Convenience wrapper for the library headers.
struct Notify * notify_new(void)
Create a new notifications handler.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void notify_free(struct Notify **ptr)
Free a notification handler.
char * mutt_str_dup(const char *str)
Copy a string, safely.
Container for Accounts, Notifications.
@ NT_MAILBOX
Mailbox has changed, NotifyMailbox, EventMailbox.
@ NT_ACCOUNT
Account has changed, NotifyAccount, EventAccount.
#define STAILQ_REMOVE(head, elm, type, field)
#define STAILQ_INIT(head)
#define STAILQ_INSERT_TAIL(head, elm, field)
#define STAILQ_EMPTY(head)
#define STAILQ_FOREACH_SAFE(var, head, field, tvar)
A group of associated Mailboxes.
enum MailboxType type
Type of Mailboxes this Account contains.
char * name
Name of Account.
struct Notify * notify
Notifications: NotifyAccount, EventAccount.
void(* adata_free)(void **ptr)
struct ConfigSubset * sub
Inherited config items.
void * adata
Private data (for Mailbox backends)
struct MailboxList mailboxes
List of Mailboxes.
A set of inherited config items.
struct ConfigSet * cs
Parent ConfigSet.
enum ConfigScope scope
Scope of Subset, e.g. SET_SCOPE_ACCOUNT.
An Event that happened to an Account.
An Event that happened to a Mailbox.
struct Mailbox * mailbox
Mailbox in the list.
enum MailboxType type
Mailbox type.
struct Notify * notify
Notifications: NotifyMailbox, EventMailbox.
struct Account * account
Account that owns this Mailbox.
bool visible
True if a result of "mailboxes".
Container for Accounts, Notifications.
struct Notify * notify
Notifications handler.
struct ConfigSubset * cs_subset_new(const char *name, struct ConfigSubset *sub_parent, struct Notify *not_parent)
Create a new Config Subset.
void cs_subset_free(struct ConfigSubset **ptr)
Free a Config Subset.
@ SET_SCOPE_ACCOUNT
This Config is Account-specific.