Create a diff for a commit in mbox format for sending via email. The commit must not be a merge commit.
buffer to store the e-mail patch in
commit to create a patch for
email creation options
0 or an error code