]> git.notmuchmail.org Git - notmuch/commit
emacs: allow functions in notmuch-show-stash-mlarchive-link-alist
authorJani Nikula <jani@nikula.org>
Thu, 1 May 2014 12:35:11 +0000 (15:35 +0300)
committerDavid Bremner <david@tethera.net>
Sun, 4 May 2014 05:16:24 +0000 (14:16 +0900)
commitecef282a168019e03424bddf0a56053e1dd9a6fe
treeebb3f6ca9f3aef6dc2d5e5e473f6a479cfdd9d89
parent21cb851a22f41e0b2a7c07dcbcc4f2dec20a0e3d
emacs: allow functions in notmuch-show-stash-mlarchive-link-alist

Some archives may use a more complicated scheme for referring to
messages than just concatenated url and message-id. In particular,
patchwork requires a query to translate message-id to a patchwork
patch id. Allow functions in notmuch-show-stash-mlarchive-link-alist
to facilitate this.

For example, one could use something like this for patchwork.

(lambda (message-id)
  (concat
   "http://patchwork.example.com/patch/"
   (nth 0
(split-string
 (car (last (process-lines "pwclient" "search" "-n" "1"
   "-m" (concat "<" message-id ">"))))))))
emacs/notmuch-show.el