47#ifndef MUTT_INDEX_LIB_H
48#define MUTT_INDEX_LIB_H
Convenience wrapper for the core headers.
const struct Mapping IndexNewsHelp[]
Help Bar for the News Index dialog.
String processing routines to generate the mail index.
void dlg_list(struct Mailbox *m, struct Email *e)
Display mailing-list actions for an email -.
struct Mailbox * dlg_index(struct MuttWindow *dlg, struct Mailbox *m)
Display a list of emails -.
const struct ExpandoDefinition StatusFormatDef[]
Expando definitions.
bool check_acl(struct Mailbox *m, AclFlags acl, const char *msg)
Check the ACLs for a function.
void change_folder_mailbox(struct Menu *menu, struct Mailbox *m, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Mailbox by pointer.
struct Mailbox * change_folder_notmuch(struct Menu *menu, char *buf, int buflen, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Notmuch Mailbox by string.
void mutt_draw_statusline(struct MuttWindow *win, int max_cols, const char *buf, size_t buflen)
Draw a highlighted status bar.
NotifyIndexFlag
Flags, e.g.
@ NT_INDEX_SUBSET
Config Subset has changed.
@ NT_INDEX_DELETE
Index Shared Data is about to be freed.
@ NT_INDEX_MAILBOX
Mailbox has changed.
@ NT_INDEX_EMAIL
Email has changed.
@ NT_INDEX_ACCOUNT
Account has changed.
@ NT_INDEX_MVIEW
MailboxView has changed.
@ NT_INDEX_ADD
New Index Shared Data has been created.
@ NT_INDEX_NONE
No flags are set.
void email_set_color(struct Mailbox *m, struct Email *e)
Select an Index colour for an Email.
CollapseMode
Action to perform on a Thread.
@ COLLAPSE_MODE_TOGGLE
Toggle collapsed state.
@ COLLAPSE_MODE_CLOSE
Collapse all threads.
@ COLLAPSE_MODE_OPEN
Open all threads.
struct MailboxView * get_current_mailbox_view(void)
Get the current Mailbox view.
void index_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Index Keybindings - Implements ::init_keys_api.
void update_index(struct Menu *menu, struct MailboxView *mv, enum MxStatus check, int oldcount, const struct IndexSharedData *shared)
Update the index.
struct Mailbox * get_current_mailbox(void)
Get the current Mailbox.
void index_change_folder(struct MuttWindow *dlg, struct Mailbox *m)
Change the current folder, cautiously.
int find_first_message(struct MailboxView *mv)
Get index of first new message.
void resort_index(struct MailboxView *mv, struct Menu *menu)
Resort the index.
int find_next_undeleted(struct MailboxView *mv, int msgno, bool uncollapse)
Find the next undeleted email.
@ CHECK_VISIBLE
Is the selected message visible in the index?
@ CHECK_NONE
No flags are set.
@ CHECK_READONLY
Is the mailbox readonly?
@ CHECK_MSGCOUNT
Are there any messages?
@ CHECK_IN_MAILBOX
Is there a mailbox open?
@ CHECK_ATTACH
Is the user in message-attach mode?
int mutt_dlgindex_observer(struct NotifyCallback *nc)
void change_folder_string(struct Menu *menu, struct Buffer *buf, int *oldcount, struct IndexSharedData *shared, bool read_only)
Change to a different Mailbox by string.
int mutt_make_string(struct Buffer *buf, size_t max_cols, const struct Expando *exp, struct Mailbox *m, int inpgr, struct Email *e, MuttFormatFlags flags, const char *progress)
Create formatted strings using mailbox expandos.
int find_previous_undeleted(struct MailboxView *mv, int msgno, bool uncollapse)
Find the previous undeleted email.
struct MuttWindow * index_pager_init(void)
Allocate the Windows for the Index/Pager.
void collapse_all(struct MailboxView *mv, struct Menu *menu, enum CollapseMode mode)
Collapse/uncollapse all threads.
Data shared between Index, Pager and Sidebar.
Convenience wrapper for the library headers.
MxStatus
Return values from mbox_check(), mbox_check_stats(), mbox_sync(), and mbox_close()
GUI display a user-configurable status line.
A curses colour and its attributes.
String manipulation buffer.
The envelope/body of an email.
Definition of a format string.
Data shared between Index, Pager and Sidebar.
Mapping between user-readable string and a constant.
Container for Accounts, Notifications.
Data passed to a notification function.
Parse Subject-regex Commands.