StringMember toAddress;
StringMember messageSize;
StringMember attachmentNumber;
StringMember readIndication;
StringMember priority;
DateMember dateReceived;
IntMember intmem = new IntMember("messageid", messageID, 10, "URL", 'T', false, 10);
int emailFolderIDx = ((Long)hm.get("EmailFolder")).intValue();
IntMember emailFolderID = new IntMember("EmailFolder", emailFolderIDx, 10, "URL", 'T', false, 10);
if (hm.get("subject") != null)
{
subject = new StringMember("Subject", (String) hm.get("subject"), 10, "", 'T', true);
}else{
subject = new StringMember("Subject", "", 10, "", 'T', true);
}
if (hm.get("mailfrom") != null)
{
String formattedAddress = (String)hm.get("mailfrom");
formattedAddress = formattedAddress.replaceAll("<", "<");
formattedAddress = formattedAddress.replaceAll(">", ">");
fromAddress = new StringMember("From", formattedAddress, 10, "URL", 'T', true);
}else{
fromAddress = new StringMember("From", "", 10, "URL", 'T', true);
}
toAddress = new StringMember("To", getTOList(messageID), 10, "URL", 'T', true);
if (hm.get("messagedate") != null)
{
dateReceived = new DateMember("Received", (java.util.Date) hm.get("messagedate"), 10, "URL", 'T', false, 100, "EST");
}else{
dateReceived = new DateMember("Received", (new java.util.Date()), 10, "URL", 'T', false, 100, "EST");
}
/*
* Determine KB, MB, or GB for email size.
*/