mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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.
This commit is contained in:
parent
2174adf374
commit
7e3b416153
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ This function advances the next thread when finished."
|
||||||
(more t)
|
(more t)
|
||||||
(inhibit-read-only t))
|
(inhibit-read-only t))
|
||||||
(while more
|
(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))
|
(let* ((thread-id (match-string 1 string))
|
||||||
(date (match-string 2 string))
|
(date (match-string 2 string))
|
||||||
(count (match-string 3 string))
|
(count (match-string 3 string))
|
||||||
|
|
Loading…
Reference in a new issue