clone original email notification from http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/commit-email.rb