|
@@ -140,7 +140,7 @@ folder name determines the the folder type."
|
|
|
"Return content of FIELD in ENTITY.
|
|
"Return content of FIELD in ENTITY.
|
|
|
FIELD is a symbol of a rfc822 message header field.
|
|
FIELD is a symbol of a rfc822 message header field.
|
|
|
ENTITY is a message entity."
|
|
ENTITY is a message entity."
|
|
|
- (let ((content (elmo-message-entity-field entity field)))
|
|
|
|
|
|
|
+ (let ((content (elmo-message-entity-field entity field 'string)))
|
|
|
(if (listp content) (car content) content)))
|
|
(if (listp content) (car content) content)))
|
|
|
|
|
|
|
|
(defun org-wl-store-link ()
|
|
(defun org-wl-store-link ()
|
|
@@ -199,6 +199,13 @@ ENTITY is a message entity."
|
|
|
(to (org-wl-message-field 'to wl-message-entity))
|
|
(to (org-wl-message-field 'to wl-message-entity))
|
|
|
(xref (org-wl-message-field 'xref wl-message-entity))
|
|
(xref (org-wl-message-field 'xref wl-message-entity))
|
|
|
(subject (org-wl-message-field 'subject wl-message-entity))
|
|
(subject (org-wl-message-field 'subject wl-message-entity))
|
|
|
|
|
+ (date (org-wl-message-field 'date wl-message-entity))
|
|
|
|
|
+ (date-ts (and date (format-time-string
|
|
|
|
|
+ (org-time-stamp-format t)
|
|
|
|
|
+ (date-to-time date))))
|
|
|
|
|
+ (date-ts-ia (and date (format-time-string
|
|
|
|
|
+ (org-time-stamp-format t t)
|
|
|
|
|
+ (date-to-time date))))
|
|
|
desc link)
|
|
desc link)
|
|
|
|
|
|
|
|
;; remove text properties of subject string to avoid possible bug
|
|
;; remove text properties of subject string to avoid possible bug
|
|
@@ -238,6 +245,9 @@ ENTITY is a message entity."
|
|
|
(setq desc (org-email-link-description))
|
|
(setq desc (org-email-link-description))
|
|
|
(setq link (org-make-link "wl:" folder-name "#" message-id-no-brackets))
|
|
(setq link (org-make-link "wl:" folder-name "#" message-id-no-brackets))
|
|
|
(org-add-link-props :link link :description desc)))
|
|
(org-add-link-props :link link :description desc)))
|
|
|
|
|
+ (when date
|
|
|
|
|
+ (org-add-link-props :date date :date-timestamp date-ts
|
|
|
|
|
+ :date-timestamp-inactive date-ts-ia))
|
|
|
(or link xref)))))))
|
|
(or link xref)))))))
|
|
|
|
|
|
|
|
(defun org-wl-open-nntp (path)
|
|
(defun org-wl-open-nntp (path)
|