patchwork icon indicating copy to clipboard operation
patchwork copied to clipboard

Mutt integration

Open dlespiau opened this issue 9 years ago • 2 comments

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)

dlespiau avatar Oct 23 '15 19:10 dlespiau

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

jnikula avatar Oct 27 '15 14:10 jnikula

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`

dlespiau avatar Oct 27 '15 14:10 dlespiau