144 shared->
email = NULL;
150 (
void *) shared->
email);
189 shared->
email = NULL;
217 if (shared->
sub != sub)
265 const struct Email *e)
@ NT_ACCOUNT_ADD
Account has been added.
@ NT_ACCOUNT_DELETE
Account is about to be deleted.
Convenience wrapper for the core headers.
@ NT_MAILBOX_DELETE
Mailbox is about to be deleted.
@ NT_MAILBOX_ADD
Mailbox has been added.
Structs that make up an email.
@ NT_EMAIL_ADD
Email has been added.
@ NT_EMAIL_DELETE
Email is about to be deleted.
#define mutt_debug(LEVEL,...)
static int index_shared_mview_observer(struct NotifyCallback *nc)
Notification that the MailboxView has changed - Implements observer_t -.
static int index_shared_account_observer(struct NotifyCallback *nc)
Notification that an Account has changed - Implements observer_t -.
static int index_shared_email_observer(struct NotifyCallback *nc)
Notification that an Email has changed - Implements observer_t -.
static int index_shared_mailbox_observer(struct NotifyCallback *nc)
Notification that a Mailbox has changed - Implements observer_t -.
void index_shared_data_free(struct MuttWindow *win, void **ptr)
Free Shared Index Data - Implements MuttWindow::wdata_free() -.
#define NT_INDEX_DELETE
Index Shared Data is about to be freed.
#define NT_INDEX_MAILBOX
Mailbox has changed.
uint8_t NotifyIndex
Flags, e.g. NT_INDEX_ACCOUNT.
#define NT_INDEX_SUBSET
Config Subset has changed.
#define NT_INDEX_MVIEW
MailboxView has changed.
#define NT_INDEX_ADD
New Index Shared Data has been created.
#define NT_INDEX_ACCOUNT
Account has changed.
#define NT_INDEX_EMAIL
Email has changed.
#define NT_INDEX_NO_FLAGS
No flags are set.
void index_shared_data_set_email(struct IndexSharedData *shared, struct Email *e)
Set the current Email for the Index and friends.
bool index_shared_data_is_cur_email(const struct IndexSharedData *shared, const struct Email *e)
Check whether an email is the currently selected Email.
struct IndexSharedData * index_shared_data_new(void)
Create new Index Data.
void index_shared_data_set_mview(struct IndexSharedData *shared, struct MailboxView *mv)
Set the MailboxView for the Index and friends.
Data shared between Index, Pager and Sidebar.
@ LL_NOTIFY
Log of notifications.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Convenience wrapper for the library headers.
bool notify_observer_remove(struct Notify *notify, const observer_t callback, const void *global_data)
Remove an observer from an object.
bool notify_observer_add(struct Notify *notify, enum NotifyType type, observer_t callback, void *global_data)
Add an observer to an object.
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_free(struct Notify **ptr)
Free a notification handler.
struct Mailbox * mview_mailbox(struct MailboxView *mv)
Wrapper to get the mailbox in a MailboxView, or NULL.
@ NT_MVIEW_DELETE
The Mview is about to be destroyed.
@ NT_MVIEW_ADD
The Mview has been opened.
@ NT_EMAIL
Email has changed, NotifyEmail, EventEmail.
@ NT_MAILBOX
Mailbox has changed, NotifyMailbox, EventMailbox.
@ NT_ACCOUNT
Account has changed, NotifyAccount, EventAccount.
@ NT_INDEX
Index data has changed, NotifyIndex, IndexSharedData.
@ NT_MVIEW
MailboxView has changed, NotifyMview, EventMview.
Match patterns to emails.
void search_state_free(struct SearchState **ptr)
Free a SearchState.
struct SearchState * search_state_new(void)
Create a new SearchState.
A group of associated Mailboxes.
struct Notify * notify
Notifications: NotifyAccount, EventAccount.
struct ConfigSubset * sub
Inherited config items.
A set of inherited config items.
The envelope/body of an email.
struct Notify * notify
Notifications: NotifyEmail, EventEmail.
size_t sequence
Sequence number assigned on creation.
An Event that happened to an Account.
struct Account * account
The Account this Event relates to.
An Event that happened to an Email.
int num_emails
Number of Emails the event applies to.
struct Email ** emails
Emails affected by the event.
An Event that happened to a Mailbox.
struct Mailbox * mailbox
The Mailbox this Event relates to.
An Event that happened to an MailboxView.
struct MailboxView * mv
The MailboxView this Event relates to.
Data shared between Index, Pager and Sidebar.
size_t email_seq
Sequence number of the current email.
struct Account * account
Current Account.
struct Email * email
Currently selected Email.
struct Mailbox * mailbox
Current Mailbox.
struct ConfigSubset * sub
Config set to use.
struct MailboxView * mailbox_view
Current Mailbox view.
struct SearchState * search_state
State of the current search.
struct Notify * notify
Notifications: NotifyIndex, IndexSharedData.
struct Notify * notify
Notifications: NotifyMview, EventMview.
struct Notify * notify
Notifications: NotifyMailbox, EventMailbox.
struct Account * account
Account that owns this Mailbox.
struct ConfigSubset * sub
Inherited config items.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
Data passed to a notification function.
void * event_data
Data from notify_send()
enum NotifyType event_type
Send: Event type, e.g. NT_ACCOUNT.
int event_subtype
Send: Event subtype, e.g. NT_ACCOUNT_ADD.
void * global_data
Data from notify_observer_add()