8 curl
-D $TMP "$URL" > /dev
/null
9 URL
=$
(sed -n 's/^Location: //p' < $TMP |
tr -d '\r\n');;
10 http
://thread.
*) URL
=http
://article.
${URL#http://thread.};;
11 http
://permalink.gmane.org
*) URL
=http
://article.
${URL#http://permalink.};;
12 http
://*|article.gmane.org
*) ;;
15 curl
-D $TMP http
://mid.gmane.org
/$1 > /dev
/null
16 URL
=$
(sed -n 's/^Location: //p' < $TMP |
tr -d '\r\n');;
17 *) URL
=http
://article.gmane.org
/gmane.comp.version-control.msysgit
/$1;;
25 curl
$URL | git am
--whitespace=fix
-3 -s