NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
Go to the documentation of this file.
23 #ifndef MUTT_INDEX_H
24 #define MUTT_INDEX_H
26 #include <stdbool.h>
27 #include <stdio.h>
29 struct Context;
30 struct Email;
31 struct Mailbox;
32 struct Menu;
33 struct MuttWindow;
34 struct NotifyCallback;
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_PgpAutoDecode;
41 extern bool C_UncollapseJump;
42 extern bool C_UncollapseNew;
44 int index_color(int line);
45 void index_make_entry(char *buf, size_t buflen, struct Menu *menu, int line);
46 void mutt_draw_statusline(int cols, const char *buf, size_t buflen);
47 int mutt_index_menu(struct MuttWindow *dlg);
48 void mutt_set_header_color(struct Mailbox *m, struct Email *e);
49 void mutt_update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, const struct Email *curr_email);
50 struct MuttWindow *index_pager_init(void);
51 void index_pager_shutdown(struct MuttWindow *dlg);
54 #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:103
The envelope/body of an email.
Definition: email.h:37
GUI selectable list of items.
Definition: mutt_menu.h:55
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:945
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:4114
bool C_UncollapseNew
Config: Open collapsed threads when new mail arrives.
Definition: index.c:105
bool C_UncollapseJump
Config: When opening a thread, jump to the next unread message.
Definition: index.c:104
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:660
int mutt_dlgindex_observer(struct NotifyCallback *nc)
Listen for config changes affecting the Index/Pager - Implements observer_t.
Definition: index.c:4139
bool C_CollapseAll
Config: Collapse all threads when entering a folder.
Definition: index.c:102
bool C_ChangeFolderNext
Config: Suggest the next folder, rather than the first when using &#39;<change-folder>&#39;.
Definition: index.c:101
void mutt_draw_statusline(int cols, const char *buf, size_t buflen)
Draw a highlighted status bar.
Definition: index.c:973
int mutt_index_menu(struct MuttWindow *dlg)
Display a list of emails.
Definition: index.c:1157
void mutt_set_header_color(struct Mailbox *m, struct Email *e)
Select a colour for a message.
Definition: index.c:3975
int const char int line
Definition: acutest.h:617
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:869
void index_pager_shutdown(struct MuttWindow *dlg)
Clear up any non-Window parts.
Definition: index.c:4131
bool C_PgpAutoDecode
Config: Automatically decrypt PGP messages.
Definition: config.c:107