//System.out.println("bcc.size()"+bcc.size());
String arraybcc[] = new String[bcc.size()];
for (int i = 0; i < arraybcc.length; i++)
{
MailAddress ma = (MailAddress) bcc.get(i);
arraybcc[i] = ma.getAddress();
//System.out.println("arraybcc["+i+"]"+arraybcc[i]);
}
ArrayList cc = mailmessage.getCc();
//System.out.println("cc"+cc);
//System.out.println("cc.size()"+cc.size());
String arraycc[] = new String[cc.size()];
for (int i = 0; i < arraycc.length; i++)
{
MailAddress ma = (MailAddress) cc.get(i);
arraycc[i] = ma.getAddress();
//System.out.println("arraycc["+i+"]"+arraycc[i]);
}
ArrayList to = mailmessage.getTo();
// System.out.println("to"+to);
//System.out.println("to.size()"+to.size());
String arrayto[] = new String[to.size()];
for (int i = 0; i < arrayto.length; i++)
{
MailAddress ma = (MailAddress)to.get(i);
arrayto[i] = ma.getAddress();
//System.out.println("arrayto["+i+"]"+arrayto[i]);
}
long l = (new java.util.Date()).getTime();
java.sql.Timestamp messagedate = (java.sql.Timestamp) new java.sql.Timestamp(l);