// 封装返回的邮件列表
List<QQEmail> list = new ArrayList<QQEmail>();
for(int i=0; i<arr.length(); i++) {
JSONObject json = arr.getJSONObject(i);
JSONObject ct = json.getJSONObject("c");
QQEmail mail = new QQEmail();
mail.setFlag(json.getLong("t"));
mail.setId(ct.getString("mailid"));
mail.setSender(ct.getString("sender"));
mail.setSenderNick(ct.getString("senderNick"));
mail.setSenderEmail(ct.getString("senderEmail"));
mail.setSubject(ct.getString("subject"));
mail.setSummary(ct.getString("summary"));
mail.setUnread(true);
list.add(mail);
}
notifyActionEvent(QQActionEvent.Type.EVT_OK,
new QQNotifyEvent(Type.EMAIL_NOTIFY, list));
}