patchwork
patchwork copied to clipboard
Mutt integration
It'd be great to have mutt/patchwork: on a key press, get the browser to open the patch or series page of the selected mail. Shouldn't be too hard:
- URLs that support addressing patches and series from the mail message-id (we already have that support for patches)
- macro that extracts the message-id (using formail) and opens the corresponding page (using xdg-open)
Please ensure all scripting you do is MUA agnostic. (Although this part is already working in notmuch-emacs, for example.)
For extracting message-id, using a small python snippet may be nicer than asking the user to install procmail (to get formail). See dim for an example:
http://cgit.freedesktop.org/drm-intel/tree/dim?h=maintainer-tools#n162
I do love the python script idea. If git-pw is already in the path, maybe we could even put that support threre: print the patch/series URL in stdout from am mail piped into stdin. Integration would just then be (not an actual mutt macro but close):
xdg-open `<pipe-message> | git pw series-url`