hashmap1 = (HashMap)iterator.next();
allmesaage = ((Long)hashmap1.get("allMesages")).intValue();
k++;
}
accountdetail.addFolder(new Folder(folderName, folderID, parentID, folderType , allmesaage ,unreadmessages ,parentName));
accountdetail.setAccountid(accountID);
accountdetail.setSignature(signature );
j = accountID;
}
else if(accountID != j)
{
//System.out.println("lastid" + j);
folderlist.put(new Integer(j), accountdetail);
//System.out.println("lastid");
String s1 = (String)hashmap1.get("address");
String s3 = (String)hashmap1.get("accountName");
accountdetail = new AccountDetail(s1);
accountdetail.setRights(str);
int l1 = ((Long)hashmap1.get("folderid")).intValue();
int j2 = ((Long)hashmap1.get("parent")).intValue();
String s7 = (String)hashmap1.get("FolderName");
String parentName = (String)hashmap1.get("parentname");
String s9 = (String)hashmap1.get("ftype");
int unreadmessages =((Long)hashmap1.get("unreadmessages")).intValue();
int allmesaage = ((Long)hashmap1.get("allMesages")).intValue();
if ( allmesaage == -1 )
{
hashmap1 = (HashMap)iterator.next();
allmesaage = ((Long)hashmap1.get("allMesages")).intValue();
k++;
}
accountdetail.addFolder(new Folder(s7, l1, j2, s9 , allmesaage ,unreadmessages,parentName ));
accountdetail.setAccountid(accountID);
accountdetail.setSignature(signature );
j = accountID;
}
else
{
//System.out.println("same id ");
int i1 = ((Long)hashmap1.get("folderid")).intValue();
int j1 = ((Long)hashmap1.get("parent")).intValue();
String s4 = (String)hashmap1.get("FolderName");
String parentName = (String)hashmap1.get("parentname");
String s5 = (String)hashmap1.get("ftype");
// 1408
String smtpserver = (String)hashmap1.get("smtpserver");
int unreadmessages =((Long)hashmap1.get("unreadmessages")).intValue();
int allmesaage = ((Long)hashmap1.get("allMesages")).intValue();
if ( allmesaage == -1 )
{
hashmap1 = (HashMap)iterator.next();
allmesaage = ((Long)hashmap1.get("allMesages")).intValue();
k++;
}
accountdetail.addFolder(new Folder(s4, i1, j1, s5 , allmesaage ,unreadmessages, parentName));
accountdetail.setRights(str);
accountdetail.setAccountid(accountID);
accountdetail.setSignature(signature );
j = accountID;
}