<<< Date Index >>>     <<< Thread Index >>>

[Patch] ";<Esc>t" : tag full threads



Hi all,

I was just given a very nice source code modification by
<fifo@xxxxxxxxxxxxx> in <news:20040211154234.GD14694@xxxxxxxxxxxxxxxx>

This patch will extend the operation of tag-thread to all threads which do
contain tagged messages. This is very helpful when you tag e.g. parts
of certain threads via any tag-pattern and want to include all other
messages of this thread.


I recommend to add this for one of the laters releases: it's a reasonable
improvement of ";" and "<Esc>t

Kind regards
Martin

--- mutt-1.5.5.1.old/curs_main.c        2004-02-02 13:50:07.000000000 +0000
+++ mutt-1.5.5.1.new/curs_main.c        2004-02-11 13:56:47.000000000 +0000
@@ -2234,6 +2234,17 @@

        CHECK_MSGCOUNT;
         CHECK_VISIBLE;
+       if (tag)
+       {
+         for (j = 0; j < Context->vcount; j++)
+         {
+           if (Context->hdrs[Context->v2r[j]]->tagged == 1)
+               mutt_thread_set_flag (Context->hdrs[Context->v2r[j]], M_TAG, 2,
+                                  op == OP_TAG_THREAD ? 0 : 1);
+         }
+         menu->redraw = REDRAW_INDEX;
+         break;
+       }
        rc = mutt_thread_set_flag (CURHDR, M_TAG, !CURHDR->tagged,
                                   op == OP_TAG_THREAD ? 0 : 1);