NEOMUTT= neomutt$(EXEEXT)
NEOMUTTOBJS= account.o addrbook.o alias.o bcache.o browser.o color.o commands.o \
complete.o compose.o compress.o conststrings.o copy.o \
- curs_lib.o curs_main.o edit.o editmsg.o enriched.o enter.o \
+ curs_lib.o edit.o editmsg.o enriched.o enter.o \
filter.o flags.o group.o handler.o hdrline.o help.o hook.o \
- init.o keymap.o mailbox.o main.o menu.o muttlib.o \
+ index.o init.o keymap.o mailbox.o main.o menu.o muttlib.o \
mutt_account.o mutt_attach.o mutt_body.o mutt_header.o \
mutt_history.o mutt_logging.o mutt_parse.o mutt_signal.o \
mutt_socket.o mutt_thread.o mutt_url.o mutt_window.o mx.o myvar.o \
#include "commands.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "edit.h"
#include "format_flags.h"
#include "globals.h"
#include "hook.h"
+#include "index.h"
#include "keymap.h"
#include "mailbox.h"
#include "menu.h"
#include "mutt.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "globals.h"
+#include "index.h"
#include "mailbox.h"
#include "menu.h"
#include "mutt_curses.h"
{
/* read new mail messages */
mutt_debug(2, "Fetching new mail\n");
- /* check_status: curs_main uses imap_check_mailbox to detect
+ /* check_status: index uses imap_check_mailbox to detect
* whether the index needs updating */
adata->check_status = IMAP_NEWMAIL_PENDING;
imap_read_headers(adata, adata->max_msn + 1, count, false);
struct ImapAccountData *adata = np->adata;
if (!adata)
- continue;
+ continue;
struct Connection *conn = adata->conn;
if (!conn || (conn->fd < 0))
#include "email/lib.h"
#include "conn/conn.h"
#include "mutt.h"
-#include "curs_main.h"
+#include "index.h"
#include "account.h"
#include "alias.h"
#include "browser.h"
#include "monitor.h"
#endif
-/* These Config Variables are only used in curs_main.c */
+/* These Config Variables are only used in index.c */
bool ChangeFolderNext; ///< Config: Suggest the next folder, rather than the first when using '<change-folder>'
bool CollapseAll; ///< Config: Collapse all threads when entering a folder
bool CollapseFlagged; ///< Config: Prevent the collapse of threads with flagged emails
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef MUTT_CURS_MAIN_H
-#define MUTT_CURS_MAIN_H
+#ifndef MUTT_INDEX_H
+#define MUTT_INDEX_H
#include <stdbool.h>
#include <stdio.h>
struct Email;
struct Menu;
-/* These Config Variables are only used in curs_main.c */
+/* These Config Variables are only used in index.c */
extern bool ChangeFolderNext;
extern bool CollapseAll;
extern bool CollapseFlagged;
void mutt_set_header_color(struct Context *ctx, struct Email *curhdr);
void update_index(struct Menu *menu, struct Context *ctx, int check, int oldcount, int index_hint);
-#endif /* MUTT_CURS_MAIN_H */
+#endif /* MUTT_INDEX_H */
#include "commands.h"
#include "compose.h"
#include "curs_lib.h"
-#include "curs_main.h"
+#include "index.h"
#include "edit.h"
#include "globals.h"
#include "group.h"
#include "color.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "globals.h"
#include "hook.h"
+#include "index.h"
#include "keymap.h"
#include "mailbox.h"
#include "menu.h"
mutt_debug(1, "#1 fseek() failed\n");
if (fgets(buffer, sizeof(buffer), adata->fp))
{
- if ((m->magic == MUTT_MBOX &&
- mutt_str_startswith(buffer, "From ", CASE_MATCH)) ||
+ if ((m->magic == MUTT_MBOX && mutt_str_startswith(buffer, "From ", CASE_MATCH)) ||
(m->magic == MUTT_MMDF && (mutt_str_strcmp(buffer, MMDF_SEP) == 0)))
{
if (fseeko(adata->fp, m->size, SEEK_SET) != 0)
#include "alias.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "globals.h"
+#include "index.h"
#include "mailbox.h"
#include "muttlib.h"
#include "ncrypt/ncrypt.h"
#include "account.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "globals.h"
+#include "index.h"
#include "mailbox.h"
#include "maildir/maildir.h"
#include "mutt_logging.h"
#include "commands.h"
#include "context.h"
#include "curs_lib.h"
-#include "curs_main.h"
#include "format_flags.h"
#include "globals.h"
#include "hdrline.h"
#include "hook.h"
+#include "index.h"
#include "keymap.h"
#include "mailbox.h"
#include "menu.h"