40#ifndef MUTT_INDEX_LIB_H
41#define MUTT_INDEX_LIB_H
58#define NT_INDEX_NO_FLAGS 0
59#define NT_INDEX_ADD (1 << 0)
60#define NT_INDEX_DELETE (1 << 1)
61#define NT_INDEX_SUBSET (1 << 2)
62#define NT_INDEX_ACCOUNT (1 << 3)
63#define NT_INDEX_MVIEW (1 << 4)
64#define NT_INDEX_MAILBOX (1 << 5)
65#define NT_INDEX_EMAIL (1 << 6)
68#define CHECK_NO_FLAGS 0
69#define CHECK_IN_MAILBOX (1 << 0)
70#define CHECK_MSGCOUNT (1 << 1)
71#define CHECK_VISIBLE (1 << 2)
72#define CHECK_READONLY (1 << 3)
73#define CHECK_ATTACH (1 << 4)
Convenience wrapper for the core headers.
uint16_t AclFlags
ACL Rights - These show permission to...
struct Mailbox * dlg_index(struct MuttWindow *dlg, struct Mailbox *m)
Display a list of emails -.
bool check_acl(struct Mailbox *m, AclFlags acl, const char *msg)
Check the ACLs for a function.
uint8_t CheckFlags
Flags, e.g. CHECK_IN_MAILBOX.
const struct Mapping IndexNewsHelp[]
Help Bar for the News Index dialog.
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.
uint8_t NotifyIndex
Flags, e.g. NT_INDEX_ACCOUNT.
struct MailboxView * get_current_mailbox_view(void)
Get the current Mailbox view.
void update_index(struct Menu *menu, struct MailboxView *mv, enum MxStatus check, int oldcount, const struct IndexSharedData *shared)
Update the index.
void mutt_set_header_color(struct Mailbox *m, struct Email *e)
Select a colour for a message.
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.
struct Menu * get_current_menu(void)
Get the current Menu.
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.
int mutt_dlgindex_observer(struct NotifyCallback *nc)
void collapse_all(struct MailboxView *mv, struct Menu *menu, int toggle)
Collapse/uncollapse all threads.
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 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.
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()
A curses colour and its attributes.
String manipulation buffer.
The envelope/body of an email.
Data shared between Index, Pager and Sidebar.
Mapping between user-readable string and a constant.
Data passed to a notification function.