Author: gmazza Date: Thu May 2 20:42:40 2013 New Revision: 1478521 URL: http://svn.apache.org/r1478521 Log: ROL-1946 Add commenter's email addr to notification emails. Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/util/MailUtil.java Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/util/MailUtil.java URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/util/MailUtil.java?rev=1478521&r1=1478520&r2=1478521&view=diff ============================================================================== --- roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/util/MailUtil.java (original) +++ roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/util/MailUtil.java Thu May 2 20:42:40 2013 @@ -337,14 +337,15 @@ public class MailUtil { boolean escapeHtml = !WebloggerRuntimeConfig.getBooleanProperty("users.comments.htmlenabled"); // first the commenter message - if (!escapeHtml) { msg.append(""); } if (!StringUtils.isEmpty(commentObject.getName())) { - msg.append(commentObject.getName() + " " + String emailAddress = StringUtils.isBlank(commentObject.getEmail()) ? " " : + " (" + commentObject.getEmail() + ") "; + msg.append(commentObject.getName() + emailAddress + resources.getString("email.comment.wrote")+": "); } else { msg.append(resources.getString("email.comment.anonymous")+": ");