summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@gnu.org>2021-09-26 08:14:21 +0200
committerBastien Guerry <bzg@gnu.org>2021-09-26 08:14:21 +0200
commit8bed20b1440f4fe26505eb6107dd52038ec993fd (patch)
treedf7d2a0eaf82bbf01389058b829d4e5964f38318
parentb884ee34ee303df6365f60b1883b3b0a88889d50 (diff)
lisp/ol-vm.el: Fix regexp
* lisp/ol-vm.el (org-vm-select-message): Fix regexp for matching the "message-id" header. Reported-by: Proposed by Alan Wehmann <alan.wehmann@gmail.com> <https://list.orgmode.org/572D856B-D4D6-41B6-8E26-EFFD25D9C808@gmail.com>
-rw-r--r--lisp/ol-vm.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ol-vm.el b/lisp/ol-vm.el
index baa3e50..5720188 100644
--- a/lisp/ol-vm.el
+++ b/lisp/ol-vm.el
@@ -155,7 +155,7 @@
(let ((case-fold-search t))
(goto-char (point-min))
(if (not (re-search-forward
- (concat "^" "message-id: *" (regexp-quote message-id))))
+ (concat "^" "message-id:\\s-*" (regexp-quote message-id))))
(error "Could not find the specified message in this folder"))
(vm-isearch-update)
(vm-isearch-narrow)