@Override
public void execute(Pop3Connection conn, Pop3State state, String cmd) {
conn.println("+OK");
try {
MailFolder inbox = state.getFolder();
<BUG>List msgList = inbox.getMessages();

int count = 0;
for(int i=0;i<msgList.size();i++) {
StoredMessage msg = (StoredMessage) msgList.get(i);</BUG>
if (msg.isSet(Flags.Flag.DELETED)) {

@Override
public boolean isValidForState(Pop3State state) {
return true;
}
@Override
public void execute(Pop3Connection conn, Pop3State state, String cmd) {
conn.println("+OK");
try {
MailFolder inbox = state.getFolder();
List<StoredMessage> msgList = inbox.getMessages();
int count = 0;
for (StoredMessage msg : msgList) {
if (msg.isSet(Flags.Flag.DELETED)) {
