[PATCH 2/2] Remove the pipe symbol in the author list when the last author matches

Dirk Hohndel hohndel at infradead.org
Thu Apr 22 21:42:15 PDT 2010


this fixes the bug exposed by the tests for this feature

Signed-off-by: Dirk Hohndel <hohndel at infradead.org>
---
 lib/thread.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/thread.cc b/lib/thread.cc
index 4e389c5..1dda220 100644
--- a/lib/thread.cc
+++ b/lib/thread.cc
@@ -140,6 +140,10 @@ _thread_move_matched_author (notmuch_thread_t *thread,
 	}
     } else {
 	thread->nonmatched_authors += author_len;
+	/* so now all authors are matched - let's remove the '|' */
+	lastpipe = strchr(thread->authors,'|');
+	if (lastpipe)
+	    *lastpipe = ',';     
     }
     return;
 }
-- 
1.6.6.1



More information about the notmuch mailing list