aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-09-23 13:21:03 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-09-23 13:21:03 -0700
commit31a5e5a12595c4130d3a7b95b53567003de0b2c9 (patch)
tree5973ef61af34f3789f6c74ec00af0fe1f5f857d7 /emacs/notmuch.el
parent8071c5cd643f7436fb65d0c74676179ea472b155 (diff)
emacs: Fix bug when parsing a subject cotaining: \[[0-9/]\]
That is, a subject with a bracketed set of digits (and optionally a slash), for example "[2010]" would cause the emacs code to misparse the search results. Fix this by tweaking the regular expression.
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index fe1041f0..42619b26 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -691,7 +691,7 @@ matching will be applied."
(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))