summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-02-11 16:19:37 -0800
committerCarl Worth <cworth@cworth.org>2010-02-11 16:19:37 -0800
commit7e3b416153b0d621afba72f88c6ea926dc9d238c (patch)
tree74f5ae1795ea4e8c41f4635caae3451583782a8a
parent2174adf374370135061bd80db21cbd43bbac95ab (diff)
notmuch.el: Fix bug from message with ':' in the From address.
Eric reported that a particular thread was non-functional in the notmuch-search mode in the emacs client. It was easy enough to trace the bug down to a broken regular expression (using ':' instead of ';'). The bug would be triggered by a message with ':' in the From address. This is something I hope to add to the test suite as soon as we have support for testing the emacs interface there.
-rw-r--r--notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch.el b/notmuch.el
index 040997e..0f4ea10 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -1350,7 +1350,7 @@ This function advances the next thread when finished."
(more t)
(inhibit-read-only t))
(while more
- (if (string-match "^\\(thread:[0-9A-Fa-f]*\\) \\(.*\\) \\(\\[[0-9/]*\\]\\) \\([^:]*\\); \\(.*\\) (\\([^()]*\\))$" string line)
+ (if (string-match "^\\(thread:[0-9A-Fa-f]*\\) \\(.*\\) \\(\\[[0-9/]*\\]\\) \\([^;]*\\); \\(.*\\) (\\([^()]*\\))$" string line)
(let* ((thread-id (match-string 1 string))
(date (match-string 2 string))
(count (match-string 3 string))