dlespiau / patchwork

The freedesktop.org edition of patchwork. Patchwork is a web patch tracking system for projects using a mailing list for contributions and reviews.
http://patchwork-freedesktop.readthedocs.org/en/latest/
GNU General Public License v2.0
22 stars 13 forks source link

Mutt integration #49

Open dlespiau opened 8 years ago

dlespiau commented 8 years ago

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:

jnikula commented 8 years ago

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

dlespiau commented 8 years ago

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`