2223242526272829303132
public void execute(Pop3Connection conn, Pop3State state, String cmd) { try { MailFolder folder = state.getFolder(); if (folder != null) { folder.expunge(); } conn.println("+OK bye see you soon"); conn.quit();
3536373839404142434445
if (session.getSelected().isReadonly()) { response.commandFailed(this, "Mailbox selected read only."); } MailFolder folder = session.getSelected(); folder.expunge(); session.unsolicitedResponses(response); response.commandComplete(this); }
3233343536373839404142
throws ProtocolException, FolderException { parser.endLine(request); if (!session.getSelected().isReadonly()) { MailFolder folder = session.getSelected(); folder.expunge(); } session.deselect(); // Don't send unsolicited responses on close. session.unsolicitedResponses(response);