branch: elpa/org-contrib
commit 8bed20b1440f4fe26505eb6107dd52038ec993fd
Author: Bastien Guerry <[email protected]>
Commit: Bastien Guerry <[email protected]>

    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 <[email protected]>
    <https://list.orgmode.org/[email protected]>
---
 lisp/ol-vm.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)

Reply via email to