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

2010-04-22 Thread Dirk Hohndel
this fixes the bug exposed by the tests for this feature

Signed-off-by: Dirk Hohndel 
---
 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



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

2010-04-22 Thread Dirk Hohndel
this fixes the bug exposed by the tests for this feature

Signed-off-by: Dirk Hohndel hohn...@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

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch