mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-22 23:11:00 +01:00
fixed exception text
This commit is contained in:
parent
bd9d051e46
commit
674178f587
@ -196,7 +196,7 @@ void POP3ClientSession::retrieveMessage(int id, MailMessage& message)
|
|||||||
{
|
{
|
||||||
std::string response;
|
std::string response;
|
||||||
sendCommand("RETR", NumberFormatter::format(id), response);
|
sendCommand("RETR", NumberFormatter::format(id), response);
|
||||||
if (!isPositive(response)) throw POP3Exception("Cannot get message list", response);
|
if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response);
|
||||||
DialogInputStream sis(_socket);
|
DialogInputStream sis(_socket);
|
||||||
MailInputStream mis(sis);
|
MailInputStream mis(sis);
|
||||||
message.read(mis);
|
message.read(mis);
|
||||||
@ -208,7 +208,7 @@ void POP3ClientSession::retrieveMessage(int id, MailMessage& message, PartHandle
|
|||||||
{
|
{
|
||||||
std::string response;
|
std::string response;
|
||||||
sendCommand("RETR", NumberFormatter::format(id), response);
|
sendCommand("RETR", NumberFormatter::format(id), response);
|
||||||
if (!isPositive(response)) throw POP3Exception("Cannot get message list", response);
|
if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response);
|
||||||
DialogInputStream sis(_socket);
|
DialogInputStream sis(_socket);
|
||||||
MailInputStream mis(sis);
|
MailInputStream mis(sis);
|
||||||
message.read(mis, handler);
|
message.read(mis, handler);
|
||||||
@ -220,7 +220,7 @@ void POP3ClientSession::retrieveMessage(int id, std::ostream& ostr)
|
|||||||
{
|
{
|
||||||
std::string response;
|
std::string response;
|
||||||
sendCommand("RETR", NumberFormatter::format(id), response);
|
sendCommand("RETR", NumberFormatter::format(id), response);
|
||||||
if (!isPositive(response)) throw POP3Exception("Cannot get message list", response);
|
if (!isPositive(response)) throw POP3Exception("Cannot retrieve message", response);
|
||||||
DialogInputStream sis(_socket);
|
DialogInputStream sis(_socket);
|
||||||
MailInputStream mis(sis);
|
MailInputStream mis(sis);
|
||||||
StreamCopier::copyStream(mis, ostr);
|
StreamCopier::copyStream(mis, ostr);
|
||||||
@ -231,7 +231,7 @@ void POP3ClientSession::retrieveHeader(int id, MessageHeader& header)
|
|||||||
{
|
{
|
||||||
std::string response;
|
std::string response;
|
||||||
sendCommand("TOP", NumberFormatter::format(id), "0", response);
|
sendCommand("TOP", NumberFormatter::format(id), "0", response);
|
||||||
if (!isPositive(response)) throw POP3Exception("Cannot get message list", response);
|
if (!isPositive(response)) throw POP3Exception("Cannot retrieve header", response);
|
||||||
DialogInputStream sis(_socket);
|
DialogInputStream sis(_socket);
|
||||||
MailInputStream mis(sis);
|
MailInputStream mis(sis);
|
||||||
header.read(mis);
|
header.read(mis);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user