folder.open(Folder.READ_WRITE);
} else {
folder.open(Folder.READ_ONLY);
}
Message messages[] = folder.getMessages();
<BUG>Message message;</BUG>
StringBuilder pdata = new StringBuilder();
pdata.append(messages.length);
<BUG>pdata.append(" messages found\n");
int n = getNumMessages();</BUG>
if (n == ALL_MESSAGES || n > messages.length) {

folder.open(Folder.READ_WRITE);
} else {
folder.open(Folder.READ_ONLY);
}
Message messages[] = folder.getMessages();
StringBuilder pdata = new StringBuilder();
pdata.append(messages.length);
pdata.append(" messages found\n");
parent.setResponseData(pdata.toString(),null);
parent.setDataType(SampleResult.TEXT);
parent.setContentType("text/plain"); // $NON-NLS-1$
int n = getNumMessages();
if (n == ALL_MESSAGES || n > messages.length) {
