-rw-r--r-- | noncore/net/mailit/smtpclient.cpp | 10 |
1 files changed, 9 insertions, 1 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() | |||
89 | response = socket->readLine(); | 89 | response = socket->readLine(); |
90 | 90 | qDebug(response); | |
91 | |||
91 | switch(status) { | 92 | switch(status) { |
@@ -96,2 +97,3 @@ void SmtpClient::incomingData() | |||
96 | *stream << "HELO there\r\n"; | 97 | *stream << "HELO there\r\n"; |
98 | qDebug("HELO"); | ||
97 | } else errorHandling(ErrUnknownResponse); | 99 | } else errorHandling(ErrUnknownResponse); |
@@ -103,2 +105,3 @@ void SmtpClient::incomingData() | |||
103 | status = Recv; | 105 | status = Recv; |
106 | qDebug("MAIL FROM: "+mailPtr->from); | ||
104 | } else errorHandling(ErrUnknownResponse); | 107 | } else errorHandling(ErrUnknownResponse); |
@@ -112,2 +115,3 @@ void SmtpClient::incomingData() | |||
112 | *stream << "RCPT TO: <" << *it << ">\r\n"; | 115 | *stream << "RCPT TO: <" << *it << ">\r\n"; |
116 | qDebug("RCPT TO: "+ *it); | ||
113 | status = MRcv; | 117 | status = MRcv; |
@@ -121,2 +125,3 @@ void SmtpClient::incomingData() | |||
121 | *stream << "RCPT TO: <" << *it << ">\r\n"; | 125 | *stream << "RCPT TO: <" << *it << ">\r\n"; |
126 | qDebug("RCPT TO: "+ *it); | ||
122 | break; | 127 | break; |
@@ -131,2 +136,3 @@ void SmtpClient::incomingData() | |||
131 | status = Body; | 136 | status = Body; |
137 | qDebug("DATA"); | ||
132 | emit updateStatus(tr("Sending: ") + mailPtr->subject); | 138 | emit updateStatus(tr("Sending: ") + mailPtr->subject); |
@@ -144,2 +150,3 @@ void SmtpClient::incomingData() | |||
144 | } | 150 | } |
151 | qDebug("BODY"); | ||
145 | } else errorHandling(ErrUnknownResponse); | 152 | } else errorHandling(ErrUnknownResponse); |
@@ -158,2 +165,3 @@ void SmtpClient::incomingData() | |||
158 | socket->close(); | 165 | socket->close(); |
166 | qDebug("QUIT"); | ||
159 | } else errorHandling(ErrUnknownResponse); | 167 | } else errorHandling(ErrUnknownResponse); |