We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936fbc5 commit baddfdcCopy full SHA for baddfdc
src/tpopmailer.cpp
@@ -72,7 +72,6 @@ bool TPopMailer::connectToHost()
72
return ret;
73
}
74
tSystemDebug("POP server connected: %s:%d", qUtf8Printable(popHostName), popPort);
75
- ;
76
77
QByteArray response;
78
readResponse(&response);
@@ -153,12 +152,13 @@ bool TPopMailer::cmdRetr(int index, QByteArray &message)
153
152
QByteArray retr("RETR ");
154
retr += QByteArray::number(index);
155
message.resize(0);
+ const QByteArray eol = QByteArrayLiteral(".") + CRLF;
156
157
bool res = cmd(retr);
158
if (res) {
159
while (socket->waitForReadyRead(5000)) {
160
message += socket->readAll();
161
- if (message.endsWith(QByteArray(".") + CRLF)) {
+ if (message.endsWith(eol)) {
162
break;
163
164
0 commit comments