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

mutt/2123: A change in "flagged" status of a message should clear "searched" status



>Number:         2123
>Notify-List:    
>Category:       mutt
>Synopsis:       A change in "flagged" status of a message should clear 
>"searched" status
>Confidential:   no
>Severity:       minor
>Priority:       low
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 30 15:24:13 +0100 2005
>Originator:     Sergey Svishchev
>Release:        1.5.11
>Organization:
>Environment:
>Description:
If flag is removed from a message, <search-next> will still find it (if there's 
"~F" in search pattern).
>How-To-Repeat:
>Fix:
--- flags.c.orig        2005-02-03 21:47:52.000000000 +0300
+++ flags.c     2005-10-26 23:55:16.000000000 +0400
@@ -34,6 +34,7 @@
   int changed = h->changed;
   int deleted = ctx->deleted;
   int tagged = ctx->tagged;
+  int flagged = ctx->flagged;
 
   if (ctx->readonly && flag != M_TAG)
     return; /* don't modify anything if we are read-only */
@@ -272,8 +273,9 @@
    * search results so that any future search will match the current status
    * of this message and not what it was at the time it was last searched.
    */
-  if (h->searched && (changed != h->changed || deleted != ctx->deleted || 
tagged != ctx->tagged))
-    h->searched = 0;
+  if (h->searched && (changed != h->changed || deleted != ctx->deleted || 
+    tagged != ctx->tagged || flagged != ctx->flagged))
+      h->searched = 0;
 }
 
 void mutt_tag_set_flag (int flag, int bf)
>Add-To-Audit-Trail:

>Unformatted: