session.setAttribute("currentMailFolder", folderID);
emailForm.set("private",(String)messageVO.getPrivate());
String fromAddress = (String)messageVO.getFromAddress();
if (fromAddress != null && !fromAddress.equals("") && CVUtility.isEmailAddressValid(fromAddress))
{
emailForm.set("from", new InternetAddress(fromAddress));
}else{
InternetAddress blankfromAddress = new InternetAddress();
blankfromAddress.setAddress("");
emailForm.set("from", blankfromAddress);
}
// the the To: list. Make sure it contains InternetAddress objects
ArrayList toListVO = (ArrayList)messageVO.getToList();