#!/bin/sh
#
# w3c-copy-archive-uri: add a pointer to the current message in
# W3C's list archives to the clipboard
#
# (meant to be invoked by piping a message to it from mutt)
#
# most useful when bound to a key combo like ^X a la:
#
#     macro index,pager \cX "|w3c-copy-archive-uri\n"
#
# Gerald Oskoboiny, 13 Apr 2011
#
# $Id: w3c-copy-archive-uri,v 1.1 2011/04/13 21:12:11 gerald Exp $
#

echo -n "http://www.w3.org/mid/`formail -xMessage-Id | tr -d '<> \n'`" | xsel -b

