231 const char *file,
int line,
const char *func)
Convenience wrapper for the config headers.
void account_free(struct Account **ptr)
Free an Account.
@ NT_ACCOUNT_ADD
Account has been added.
@ NT_ACCOUNT_DELETE_ALL
All Accounts are about to be deleted.
const char * mailbox_get_type_name(enum MailboxType type)
Get the type of a Mailbox.
MailboxType
Supported mailbox formats.
@ MUTT_UNKNOWN
Mailbox wasn't recognised.
FILE * mutt_file_fopen_full(const char *path, const char *mode, const mode_t perms, const char *file, int line, const char *func)
Call fopen() safely.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG3
Log at debug level 3.
@ LL_NOTIFY
Log of notifications.
void mutt_exit(int code)
Leave NeoMutt NOW.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
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.
void neomutt_mailboxlist_clear(struct MailboxList *ml)
Free a Mailbox List.
bool neomutt_account_add(struct NeoMutt *n, struct Account *a)
Add an Account to the global list.
size_t neomutt_mailboxlist_get_all(struct MailboxList *head, struct NeoMutt *n, enum MailboxType type)
Get a List of all Mailboxes.
bool neomutt_account_remove(struct NeoMutt *n, const struct Account *a)
Remove an Account from the global list.
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the main NeoMutt object.
FILE * mutt_file_fopen_masked_full(const char *path, const char *mode, const char *file, int line, const char *func)
Wrapper around mutt_file_fopen_full()
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Container for Accounts, Notifications.
@ NT_ACCOUNT
Account has changed, NotifyAccount, EventAccount.
#define TAILQ_FOREACH(var, head, field)
#define STAILQ_REMOVE(head, elm, type, field)
#define TAILQ_FOREACH_SAFE(var, head, field, tvar)
#define TAILQ_INSERT_TAIL(head, elm, field)
#define STAILQ_FOREACH(var, head, field)
#define STAILQ_INSERT_TAIL(head, elm, field)
#define TAILQ_REMOVE(head, elm, field)
#define STAILQ_FOREACH_SAFE(var, head, field, tvar)
#define TAILQ_EMPTY(head)
A group of associated Mailboxes.
enum MailboxType type
Type of Mailboxes this Account contains.
struct Notify * notify
Notifications: NotifyAccount, EventAccount.
struct MailboxList mailboxes
List of Mailboxes.
Container for lots of 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.
struct Mailbox * mailbox
Mailbox in the list.
Container for Accounts, Notifications.
struct Notify * notify_timeout
Timeout notifications handler.
struct Notify * notify_resize
Window resize notifications handler.
struct AccountList accounts
List of all Accounts.
mode_t user_default_umask
User's default file writing permissions (inferred from umask)
struct Notify * notify
Notifications handler.
struct ConfigSubset * sub
Inherited config items.
locale_t time_c_locale
Current locale but LC_TIME=C.
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_NEOMUTT
This Config is NeoMutt-specific (global)