[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug inetlib/26010] Please make gnu.inet.imap.IMAPConnection.sendCommand
From: |
bero at arklinux dot org |
Subject: |
[Bug inetlib/26010] Please make gnu.inet.imap.IMAPConnection.sendCommand() public |
Date: |
28 Jan 2006 23:36:00 -0000 |
------- Comment #1 from bero at arklinux dot org 2006-01-28 23:36 -------
Same request for invokeSimpleCommand(), and a variant thereof that can deal
with simple replies - something like:
public String runSimpleCommand(String command)
throws IOException
{
String tag = newTag();
sendCommand(tag, command);
String result;
while (true)
{
IMAPResponse = readResponse();
String id = response.getID();
if (response.isUntagged())
{
result = response.getText();
}
else if (tag.equals(response.getTag()))
{
processAlerts(response);
if (id != OK)
{
result = null;
}
return result;
}
else
{
asyncResponses.add(response);
}
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26010