From d2736533dbead5b7309b4a6d3eaa3dcef6fb9234 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Wed, 10 Oct 2001 15:39:22 +0000 Subject: [PATCH] Don't allow setting the "important" flag when message resides on a POP server. --- curs_main.c | 9 +++++++++ pager.c | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/curs_main.c b/curs_main.c index d3b69ff2..eaaa90b1 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1317,6 +1317,15 @@ int mutt_index_menu (void) CHECK_VISIBLE; CHECK_READONLY; +#ifdef USE_POP + if (Context->magic == M_POP) + { + mutt_flushinp (); + mutt_error _("Can't change 'important' flag on POP server."); + break; + } +#endif + if (tag) { for (j = 0; j < Context->vcount; j++) diff --git a/pager.c b/pager.c index c570a1ed..fcc0c5b2 100644 --- a/pager.c +++ b/pager.c @@ -2237,6 +2237,16 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) case OP_FLAG_MESSAGE: CHECK_MODE(IsHeader (extra)); CHECK_READONLY; + +#ifdef USE_POP + if (Context->magic == M_POP) + { + mutt_flushinp (); + mutt_error _("Can't change 'important' flag on POP server."); + break; + } +#endif + mutt_set_flag (Context, extra->hdr, M_FLAG, !extra->hdr->flagged); redraw = REDRAW_STATUS | REDRAW_INDEX; if (option (OPTRESOLVE)) -- 2.40.0