Link messages from Org.
(with-eval-after-load 'org (defun my-org-notmuch-show-store-link () "Store a link to a Notmuch message." (interactive) (when (eq major-mode 'notmuch-show-mode) (org-store-link-props :type "notmuch" :link (concat "notmuch-show:" (notmuch-show-get-message-id t)) :description (notmuch-show-get-message-id t)))))
(with-eval-after-load 'org (defun my-org-notmuch-show-follow-link (path) (notmuch-show (concat "id:" path))))
(with-eval-after-load 'org (org-link-set-parameters "notmuch-show" :store #'my-org-notmuch-show-store-link :follow #'my-org-notmuch-show-follow-link))