From: Alan Wehmann <alan.wehmann@gmail.com>
To: emacs-orgmode@gnu.org
Subject: routine "org-vm-select-message" in "ol-vm.el"
Date: Thu, 3 Jun 2021 21:49:40 -0500 [thread overview]
Message-ID: <572D856B-D4D6-41B6-8E26-EFFD25D9C808@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
I am using:
Org mode version 9.4.6 (9.4.6-2-g21eb69-elpa @ /Users/alanwehmann/.emacs.d/elpa/org-20210524/)
GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12
VM version is: 8.2.0b
org-plus-contrib-20210531 package
I have found emails (in VM) which have e.g. the following lines in them:
Message-ID:
<CH0PR20MB4028E04BA1B8CE21C1F57A3BAE2D9@CH0PR20MB4028.namprd20.prod.outlook.com>
i.e. a line break after the colon.
This cannot be matched by the following code from function "org-vm-select-message" found in "ol-vm.el" from "org-plus-contrib-20210531":
(if (not (re-search-forward
(concat "^" "message-id: *" (regexp-quote message-id))))
(error "Could not find the specified message in this folder"))
The following change to this code works:
(if (not (re-search-forward
(concat "^" "message-id:\\s-*" (regexp-quote message-id))))
(error "Could not find the specified message in this folder"))
since "\\s-" matches white space, including line breaks.
Alan Wehmann
alan.wehmann@gmail.com
[-- Attachment #2: Type: text/html, Size: 2753 bytes --]
next reply other threads:[~2021-06-04 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 2:49 Alan Wehmann [this message]
2021-09-26 6:16 ` routine "org-vm-select-message" in "ol-vm.el" Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=572D856B-D4D6-41B6-8E26-EFFD25D9C808@gmail.com \
--to=alan.wehmann@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).