Use email from commit rather than user

@parthibanloganathan Pending code review.