コード例 #1
0
ファイル: EmailManager.java プロジェクト: Cauac/MailLibrary
  public boolean deleteMessage(int number) throws IOException, ProtocolException {
    boolean result = false;
    Socket s = this.getIncommingSocket();
    ReceiveProtocol protocol = this.getIncommingProtocol(s);

    protocol.startSession();
    protocol.authorization(info.getUsername(), info.getPassword());
    result = protocol.deleteMessage(number);
    protocol.closeSession();
    s.close();
    return result;
  }