]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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 ">"))))))))


No differences found