Add a basic test case for git send-email, and fix some real bugs discovered.
Add a basic test case for git send-email, and fix some real bugs discovered.

Signed-off-by: Ryan Anderson <a050a31ff21b2016683b1fc8420afd353550b596@google.com>
Signed-off-by: Junio C Hamano <dc50d1021234060e53ec42a77d526afa2fe07479@cox.net>

destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git