X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcurs_main.c;h=d83f1bffdca3e6b675aef478fd82fc957f22a9d3;hp=4893833a429cec22f6f28875bae61bd936e9b962;hb=9946738a6a1c27a5602a14d1afe2eea2389732b2;hpb=576172ff50f9dd94dd2f5cc91d247c1e50dbe7fc diff --git a/lib-ui/curs_main.c b/lib-ui/curs_main.c index 4893833..d83f1bf 100644 --- a/lib-ui/curs_main.c +++ b/lib-ui/curs_main.c @@ -14,7 +14,7 @@ #include #include -#include +#include "pop.h" #include "curses.h" #include "menu.h" @@ -27,6 +27,7 @@ #include "recvattach.h" #include "buffy.h" #include "thread.h" +#include "score.h" #include @@ -34,10 +35,6 @@ #include #endif -#ifdef USE_SASL -#include "mutt_sasl.h" -#endif - 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."); @@ -397,10 +394,10 @@ int mutt_index_menu (void) int oldcount = -1; int rc = -1; MUTTMENU *menu; - char *cp; /* temporary variable. */ + const char *cp; /* temporary variable. */ int index_hint; /* used to restore cursor position */ int do_buffy_notify = 1; - int closed = 0; /* did we OP_QUIT or OP_EXIT out of this menu? */ + int closed = 0; /* did we OP_QUIT or OP_EXIT out of this menu? */ int attach_msg = option (OPTATTACHMSG); menu = mutt_new_menu (); @@ -478,7 +475,7 @@ int mutt_index_menu (void) sidebar_draw (); mutt_message (_("New mail in this mailbox.")); - if (MCore.beep_new) + if (mod_core.beep_new) beep (); } else if (check == M_FLAGS) @@ -505,7 +502,7 @@ int mutt_index_menu (void) menu->redraw |= REDRAW_SIDEBAR; } if (do_buffy_notify) { - if (buffy_notify () && MCore.beep_new) + if (buffy_notify () && mod_core.beep_new) beep (); } else @@ -973,7 +970,7 @@ int mutt_index_menu (void) break; } - if (query_quadoption2(MCore.quit, _("Quit Madmutt?")) == M_YES) { + if (query_quadoption2(mod_core.quit, _("Quit Madmutt?")) == M_YES) { int check; oldcount = Context ? Context->msgcount : 0; @@ -1301,7 +1298,7 @@ int mutt_index_menu (void) } if ((menu->menu == MENU_MAIN) - && (query_quadoption2(MCore.quit, + && (query_quadoption2(mod_core.quit, _("Exit Madmutt without saving?")) == M_YES)) { if (Context) { @@ -1746,8 +1743,7 @@ int mutt_index_menu (void) CHECK_VISIBLE; CHECK_READONLY; - if (mutt_change_flag (tag ? NULL : CURHDR, (op == OP_MAIN_SET_FLAG)) == - 0) { + if (mutt_change_flag (tag ? NULL : CURHDR, (op == OP_MAIN_SET_FLAG)) == 0) { menu->redraw = REDRAW_STATUS; if (tag) menu->redraw |= REDRAW_INDEX; @@ -2030,13 +2026,6 @@ int mutt_index_menu (void) menu->redraw = REDRAW_FULL; break; - case OP_MAIL_KEY: - CHECK_ATTACH; - ci_send_message (SENDKEY, NULL, NULL, NULL, NULL); - menu->redraw = REDRAW_FULL; - break; - - case OP_EXTRACT_KEYS: CHECK_MSGCOUNT; CHECK_VISIBLE; @@ -2292,10 +2281,6 @@ int mutt_index_menu (void) mutt_what_key (); break; - case OP_REBUILD_CACHE: - mx_rebuild_cache (); - break; - case OP_SIDEBAR_SCROLL_UP: case OP_SIDEBAR_SCROLL_DOWN: case OP_SIDEBAR_NEXT: @@ -2324,9 +2309,6 @@ int mutt_index_menu (void) #ifdef USE_NNTP /* Close all open NNTP connections */ nntp_logout_all (); -#endif -#ifdef USE_SASL - mutt_sasl_done (); #endif }