diff options
author | Jani Nikula <jani@nikula.org> | 2014-05-01 15:35:11 +0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-05-04 14:16:24 +0900 |
commit | ecef282a168019e03424bddf0a56053e1dd9a6fe (patch) | |
tree | ebb3f6ca9f3aef6dc2d5e5e473f6a479cfdd9d89 /notmuch-insert.c | |
parent | 21cb851a22f41e0b2a7c07dcbcc4f2dec20a0e3d (diff) |
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 ">"))))))))
Diffstat (limited to 'notmuch-insert.c')
0 files changed, 0 insertions, 0 deletions