Re: difficulty extracting email address from property field containing gmail link

2020-11-30 Thread John Kitchin
I think code like this would also work: #+BEGIN_SRC emacs-lisp (let* ((url " https://mail.google.com/mail?view=cm&fs=1&to=duncan...@indeedemail.com";) (struct (url-generic-parse-url url)) (filename (url-filename struct))) (cadr (assoc "to" (url-parse-query-string filename #+EN

Re: difficulty extracting email address from property field containing gmail link

2020-11-30 Thread Ian Garmaise
Thanks Kyle, got it to work this way: #+BEGIN: propview :cols ((car (s-split " " ITEM)) (s-chop-prefix "gmail:" (my/extract-email-from-link EMAIL_ADDRESS))) :id "candidates" :match "testthis" :wrap example | (car (s-split " " ITEM)) | (s-chop-prefix "gmail:" (my/extract-email-from-link EMAIL_ADD

Re: difficulty extracting email address from property field containing gmail link

2020-11-29 Thread Kyle Meyer
Ian Garmaise writes: > 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)) EMA

difficulty extracting email address from property field containing gmail link

2020-11-29 Thread Ian Garmaise
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 we