return false;
}
@Override
public MessageList all() {
MessageList messages = new MessageList();
try {
out.println("LIST");
if(isOK()) {
String line = in.readLine();
ArrayList<Integer> ids = new ArrayList<Integer>();
Message curMsg;
while(! line.equals(".")) {
ids.add(Integer.parseInt(line.split(" ")[0]));
line = in.readLine();
}
for(Integer id : ids) {
curMsg = find(id);
messages.add(curMsg);
}
}
} catch (Exception e) {
e.printStackTrace();
}