#!/bin/sh
command -v mutt >/dev/null 2>&1 || { echo "mutt not found"; exit 255; }
tmpfile=$(mktemp)
trap "rm -f $tmpfile" EXIT
git format-patch "$@" --stdout > "$tmpfile" && \
 mutt -H "$tmpfile"
