Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion contrib/lisp/org-notmuch.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,22 @@
(subject (notmuch-show-get-subject))
(to (notmuch-show-get-to))
(from (notmuch-show-get-from))
(date (notmuch-show-get-date))
(date-ts (and date
(ignore-errors
(format-time-string
(org-time-stamp-format t)
(date-to-time date)))))
(date-ts-ia (and date
(ignore-errors
(format-time-string
(org-time-stamp-format t t)
(date-to-time date)))))
desc link)
(org-store-link-props :type "notmuch" :from from :to to
:subject subject :message-id message-id)
:subject subject :message-id message-id
:date date :date-timestamp date-ts
:date-timestamp-inactive date-ts-ia))
(setq desc (org-email-link-description))
(setq link (concat "notmuch:" "id:" message-id))
(org-add-link-props :link link :description desc)
Expand Down