class SimpleMailMessageSupport {

	public String describeTopic(SimpleMailMessage message) {
		StringBuilder sb = new StringBuilder();
		sb.append("subject=").append(message.getSubject()).append("; ");
		
		appendTargets(sb, message.getTo(), "to");
		appendTargets(sb, message.getCc(), "cc");
		appendTargets(sb, message.getBcc(), "bcc");
		
		appendTarget(sb, message.getFrom(), "from");
		appendTarget(sb, message.getReplyTo(), "replyTo");
		
		return sb.toString().trim();
	}

}