From: Ian Garmaise <email@example.com>
To: emacs-orgmode <firstname.lastname@example.org>
Subject: difficulty extracting email address from property field containing gmail link
Date: Sun, 29 Nov 2020 21:18:25 -0500 [thread overview]
Message-ID: <CALWEx6UFJpfE13iNVESXfYz1pOeqe7pQwh+KupkHz2JCjkhWcQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]
I have created a kind of mini CRM using properties.
Now I need to extract data from the entries to create a CSV file for use
with an external email tool.
I have used org-collector.el to extract tagged entries to a table, on which
I then use orgtbl-to-csv to create the CSV file.
This is working well, except for the property used for the email address.
Unfortunately, I stored this as a gmail link. This makes it difficult to
extract the actual email address using org-collector as follows:
#+BEGIN: propview :cols ((car (s-split " " ITEM)) EMAIL_ADDRESS) :id
"candidates" :match "testthis" :wrap example
the result produced looks like this:
| (car (s-split " " ITEM)) | EMAIL_ADDRESS
| "Ciara" | [[
| "Duncan" | [[
I have looked at several methods that I found on the web to extract the
email address from the link in the property, but haven't yet found a
solution that I could get to work. Still building up my elisp skillset,
would appreciate suggestions.
Phorix Solutions Group
Toronto cell: 416.432.2251
[-- Attachment #2: Type: text/html, Size: 3609 bytes --]
next reply other threads:[~2020-11-30 2:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 2:18 Ian Garmaise [this message]
2020-11-30 3:39 ` difficulty extracting email address from property field containing gmail link Kyle Meyer
2020-11-30 12:41 ` Ian Garmaise
2020-11-30 13:42 ` John Kitchin
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).