mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
8071c5cd64
commit
31a5e5a125
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue