Function: org-link-store-props
org-link-store-props is a byte-compiled function defined in ol.el.gz.
Signature
(org-link-store-props &rest PLIST)
Documentation
Store link properties PLIST.
The properties are pre-processed by extracting names, addresses and dates.
Aliases
org-store-link-props (obsolete since 9.3)
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
(defun org-link-store-props (&rest plist)
"Store link properties PLIST.
The properties are pre-processed by extracting names, addresses
and dates."
(let ((x (plist-get plist :from)))
(when x
(let ((adr (mail-extract-address-components x)))
(setq plist (plist-put plist :fromname (car adr)))
(setq plist (plist-put plist :fromaddress (nth 1 adr))))))
(let ((x (plist-get plist :to)))
(when x
(let ((adr (mail-extract-address-components x)))
(setq plist (plist-put plist :toname (car adr)))
(setq plist (plist-put plist :toaddress (nth 1 adr))))))
(let ((x (ignore-errors (date-to-time (plist-get plist :date)))))
(when x
(setq plist (plist-put plist :date-timestamp
(format-time-string
(org-time-stamp-format t) x)))
(setq plist (plist-put plist :date-timestamp-inactive
(format-time-string
(org-time-stamp-format t t) x)))))
(let ((from (plist-get plist :from))
(to (plist-get plist :to)))
(when (and from to org-link-from-user-regexp)
(setq plist
(plist-put plist :fromto
(if (string-match org-link-from-user-regexp from)
(concat "to %t")
(concat "from %f"))))))
(setq org-store-link-plist plist))