* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/mem.h>
-#include <lib-lib/str.h>
-#include <lib-lib/macros.h>
-#include <lib-lib/mapping.h>
+#include <lib-lib/lib-lib.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/sidebar.h>
#include <pop/pop.h>
+#include "curses.h"
+#include "menu.h"
+
#include "mutt.h"
+#include "alias.h"
#include "mx.h"
-#include "mutt_menu.h"
#include "sort.h"
#include "recvattach.h"
#include "buffy.h"
#include "mx.h"
-#include "sidebar.h"
#include "thread.h"
#include "xterm.h"
#include "mutt_sasl.h"
#endif
-#include "lib/debug.h"
-
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/wait.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <errno.h>
-
static const char *No_mailbox_is_open = N_("No mailbox is open.");
static const char *There_are_no_messages = N_("There are no messages.");
static const char *Mailbox_is_read_only = N_("Mailbox is read-only.");
("Mailbox was externally modified. Flags may be wrong."));
else if (check == M_NEW_MAIL) {
/* on new mail: redraw sidebar */
- sidebar_draw (CurrentMenu);
+ sidebar_draw ();
mutt_message (_("New mail in this mailbox."));
if (option (OPTBEEPNEW))
if (op != -1)
mutt_curs_set (0);
if (menu->redraw & REDRAW_SIDEBAR)
- sidebar_draw (menu->menu);
+ sidebar_draw ();
if (menu->redraw & REDRAW_FULL) {
menu_redraw_full (menu);
- sidebar_draw (menu->menu);
+ sidebar_draw ();
mutt_show_error ();
}
op = km_dokey (MENU_MAIN);
- debug_print (4, ("Got op %d\n", op));
-
if (op == -1)
continue; /* either user abort or timeout */
break;
}
else {
- LIST *ref = CURHDR->env->references;
+ string_list_t *ref = CURHDR->env->references;
if (!ref) {
mutt_error (_("Article has no parent reference!"));
m_strcpy(buf, sizeof(buf), CURHDR->env->message_id);
if (op == OP_RECONSTRUCT_THREAD) {
- LIST *ref = CURHDR->env->references;
+ string_list_t *ref = CURHDR->env->references;
while (ref) {
nntp_check_msgid (Context, ref->data);
case OP_SIDEBAR_PREV:
case OP_SIDEBAR_NEXT_NEW:
case OP_SIDEBAR_PREV_NEW:
- sidebar_scroll (op, menu->menu);
+ sidebar_scroll (op);
break;
default:
if (menu->menu == MENU_MAIN)