#include <lib-lib/lib-lib.h>
#include <lib-ui/sidebar.h>
+#include <lib-mx/mx.h>
+#include <lib-crypt/crypt.h>
#include <pop/pop.h>
#include "mutt.h"
#include "alias.h"
-#include "mx.h"
#include "sort.h"
#include "recvattach.h"
#include "buffy.h"
-#include "mx.h"
#include "thread.h"
-#include "xterm.h"
#include <imap/imap_private.h>
-#include <lib-crypt/crypt.h>
-
#ifdef USE_NNTP
-#include "nntp/nntp.h"
+#include <nntp/nntp.h>
#endif
#ifdef USE_SASL
("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 ();
}
sidebar_set_buffystats (Context);
menu->redraw &= ~REDRAW_STATUS;
if (option (OPTXTERMSETTITLES)) {
- menu_status_line (buf, sizeof (buf), menu, NONULL (XtermTitle));
- mutt_xterm_set_title (buf);
- menu_status_line (buf, sizeof (buf), menu, NONULL (XtermIcon));
- mutt_xterm_set_icon (buf);
+ menu_status_line(buf, sizeof(buf), menu, NONULL(XtermTitle));
+ printf("\033]2;%s\007", buf);
+ menu_status_line(buf, sizeof(buf), menu, NONULL(XtermIcon));
+ printf("\033]1;%s\007", buf);
+ fflush(stdout);
}
}
if (Context) {
int check;
- if (Context->compressinfo && Context->realpath)
+ if (Context->cinfo && Context->realpath)
m_strreplace(&LastFolder, Context->realpath);
else
m_strreplace(&LastFolder, Context->path);
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)