conn.println("+OK " + messages.size() + " " + size);
} catch (Exception me) {
conn.println("-ERR " + me);
}
}
<BUG>long sumMessageSizes(List messages)
</BUG>
throws MailException {
long total = 0;
<BUG>for (Object message : messages) {

StoredMessage msg = (StoredMessage) message;</BUG>
try {

conn.println("+OK " + messages.size() + " " + size);
} catch (Exception me) {
conn.println("-ERR " + me);
}
}
long sumMessageSizes(List<StoredMessage> messages)
throws MailException {
long total = 0;
for (StoredMessage msg : messages) {
try {
