Documentation for JIRA 4.1. Documentation for other versions of JIRA is available too. 
![]()
To append email addresses to comments made by anonymous users when using a mail handler, follow the instructions below.
Follow the instructions in How to make a JIRA patch.
if (body != null):
// append the From address at the end of body
body += "\n[Commented via e-mail ";
if (message.getFrom() != null && message.getFrom().length > 0)
body += "received from: " + message.getFrom()[0] + "]";
else
body += "but could not establish sender's address.]";
<jira-install/WEB-INF/classes/com/atlassian/jira/web/action/issue/AbstractCommentableIssue.classTested on JIRA 3.13.5