]> granicus.if.org Git - neomutt/commitdiff
Don't allow setting the "important" flag when message resides on a
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 15:39:22 +0000 (15:39 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 10 Oct 2001 15:39:22 +0000 (15:39 +0000)
POP server.

curs_main.c
pager.c

index d3b69ff2937bd807f5d1393b52cb9a797b247c18..eaaa90b1b045842f19b7a74bce1c3307a3b2f6ad 100644 (file)
@@ -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 c570a1ede7e3575f7c2782bc23f1923a4e0defc9..fcc0c5b2aae00f29f8b065976b9e4c76004791ec 100644 (file)
--- 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))