From: Thomas Roessler Date: Wed, 10 Oct 2001 15:39:22 +0000 (+0000) Subject: Don't allow setting the "important" flag when message resides on a X-Git-Tag: mutt-1-3-23-1-rel~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2736533dbead5b7309b4a6d3eaa3dcef6fb9234;p=mutt Don't allow setting the "important" flag when message resides on a POP server. --- 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))