summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mailit/smtpclient.cpp10
-rw-r--r--noncore/unsupported/mailit/smtpclient.cpp10
2 files changed, 18 insertions, 2 deletions
diff --git a/noncore/net/mailit/smtpclient.cpp b/noncore/net/mailit/smtpclient.cpp
index 3bdc072..6699a90 100644
--- a/noncore/net/mailit/smtpclient.cpp
+++ b/noncore/net/mailit/smtpclient.cpp
@@ -89,3 +89,4 @@ void SmtpClient::incomingData()
response = socket->readLine();
-
+ qDebug(response);
+
switch(status) {
@@ -96,2 +97,3 @@ void SmtpClient::incomingData()
*stream << "HELO there\r\n";
+ qDebug("HELO");
} else errorHandling(ErrUnknownResponse);
@@ -103,2 +105,3 @@ void SmtpClient::incomingData()
status = Recv;
+ qDebug("MAIL FROM: "+mailPtr->from);
} else errorHandling(ErrUnknownResponse);
@@ -112,2 +115,3 @@ void SmtpClient::incomingData()
*stream << "RCPT TO: <" << *it << ">\r\n";
+ qDebug("RCPT TO: "+ *it);
status = MRcv;
@@ -121,2 +125,3 @@ void SmtpClient::incomingData()
*stream << "RCPT TO: <" << *it << ">\r\n";
+ qDebug("RCPT TO: "+ *it);
break;
@@ -131,2 +136,3 @@ void SmtpClient::incomingData()
status = Body;
+ qDebug("DATA");
emit updateStatus(tr("Sending: ") + mailPtr->subject);
@@ -144,2 +150,3 @@ void SmtpClient::incomingData()
}
+ qDebug("BODY");
} else errorHandling(ErrUnknownResponse);
@@ -158,2 +165,3 @@ void SmtpClient::incomingData()
socket->close();
+ qDebug("QUIT");
} else errorHandling(ErrUnknownResponse);
diff --git a/noncore/unsupported/mailit/smtpclient.cpp b/noncore/unsupported/mailit/smtpclient.cpp
index 3bdc072..6699a90 100644
--- a/noncore/unsupported/mailit/smtpclient.cpp
+++ b/noncore/unsupported/mailit/smtpclient.cpp
@@ -89,3 +89,4 @@ void SmtpClient::incomingData()
response = socket->readLine();
-
+ qDebug(response);
+
switch(status) {
@@ -96,2 +97,3 @@ void SmtpClient::incomingData()
*stream << "HELO there\r\n";
+ qDebug("HELO");
} else errorHandling(ErrUnknownResponse);
@@ -103,2 +105,3 @@ void SmtpClient::incomingData()
status = Recv;
+ qDebug("MAIL FROM: "+mailPtr->from);
} else errorHandling(ErrUnknownResponse);
@@ -112,2 +115,3 @@ void SmtpClient::incomingData()
*stream << "RCPT TO: <" << *it << ">\r\n";
+ qDebug("RCPT TO: "+ *it);
status = MRcv;
@@ -121,2 +125,3 @@ void SmtpClient::incomingData()
*stream << "RCPT TO: <" << *it << ">\r\n";
+ qDebug("RCPT TO: "+ *it);
break;
@@ -131,2 +136,3 @@ void SmtpClient::incomingData()
status = Body;
+ qDebug("DATA");
emit updateStatus(tr("Sending: ") + mailPtr->subject);
@@ -144,2 +150,3 @@ void SmtpClient::incomingData()
}
+ qDebug("BODY");
} else errorHandling(ErrUnknownResponse);
@@ -158,2 +165,3 @@ void SmtpClient::incomingData()
socket->close();
+ qDebug("QUIT");
} else errorHandling(ErrUnknownResponse);