NeoMutt  2021-02-05
Teaching an old dog new tricks
DOXYGEN
index.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_INDEX_H
24 #define MUTT_INDEX_H
25 
26 #include <stdbool.h>
27 #include <stdio.h>
28 
29 struct Context;
30 struct Email;
31 struct Mailbox;
32 struct Menu;
33 struct MuttWindow;
34 struct NotifyCallback;
35 
36 /* These Config Variables are only used in index.c */
37 extern bool C_ChangeFolderNext;
38 extern bool C_CollapseAll;
39 extern char *C_MarkMacroPrefix;
40 extern bool C_UncollapseJump;
41 extern bool C_UncollapseNew;
42 
43 int index_color(int line);
44 void index_make_entry(char *buf, size_t buflen, struct Menu *menu, int line);
45 void mutt_draw_statusline(int cols, const char *buf, size_t buflen);
46 int mutt_index_menu(struct MuttWindow *dlg);
47 void mutt_set_header_color(struct Mailbox *m, struct Email *e);
48 void mutt_update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, const struct Email *curr_email);
49 struct MuttWindow *index_pager_init(void);
50 void index_pager_shutdown(struct MuttWindow *dlg);
52 
53 #endif /* MUTT_INDEX_H */
The "current" mailbox.
Definition: context.h:38
char * C_MarkMacroPrefix
Config: Prefix for macros using &#39;<mark-message>&#39;.
Definition: index.c:104
The envelope/body of an email.
Definition: email.h:37
GUI selectable list of items.
Definition: mutt_menu.h:52
Data passed to a notification function.
Definition: observer.h:39
int index_color(int line)
Calculate the colour for a line of the index - Implements Menu::color()
Definition: index.c:938
A division of the screen.
Definition: mutt_window.h:115
struct MuttWindow * index_pager_init(void)
Allocate the Windows for the Index/Pager.
Definition: index.c:4101
bool C_UncollapseNew
Config: Open collapsed threads when new mail arrives.
Definition: index.c:106
bool C_UncollapseJump
Config: When opening a thread, jump to the next unread message.
Definition: index.c:105
A mailbox.
Definition: mailbox.h:81
void mutt_update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, const struct Email *curr_email)
Update the index.
Definition: index.c:652
int mutt_dlgindex_observer(struct NotifyCallback *nc)
Listen for config changes affecting the Index/Pager - Implements observer_t.
Definition: index.c:4126
bool C_CollapseAll
Config: Collapse all threads when entering a folder.
Definition: index.c:103
bool C_ChangeFolderNext
Config: Suggest the next folder, rather than the first when using &#39;<change-folder>&#39;.
Definition: index.c:102
void mutt_draw_statusline(int cols, const char *buf, size_t buflen)
Draw a highlighted status bar.
Definition: index.c:967
int mutt_index_menu(struct MuttWindow *dlg)
Display a list of emails.
Definition: index.c:1146
void mutt_set_header_color(struct Mailbox *m, struct Email *e)
Select a colour for a message.
Definition: index.c:3962
void index_make_entry(char *buf, size_t buflen, struct Menu *menu, int line)
Format a menu item for the index list - Implements Menu::make_entry()
Definition: index.c:861
void index_pager_shutdown(struct MuttWindow *dlg)
Clear up any non-Window parts.
Definition: index.c:4118