rem: kdWarning() << __FUNCTION__ << ": SMTP error: " << msg << endl; DEBUGCONDUIT << __FUNCTION__ << ": SMTP error: " << logBuffer << endl;
add: kdWarning() << k_funcinfo << ": SMTP error: " << msg << endl; #ifdef DEBUG DEBUGCONDUIT << fname << ": SMTP error: " << logBuffer << endl; #endif
context: int sendSMTPCommand (KSocket& kSocket,					 const QString& sendBuffer,		// Buffer to send					 QTextOStream& logStream,		// For SMTP conversation logging					 const QString& logBuffer,		// Entire SMTP conversation log					 const QRegExp& expect,			// What do we expect as response (regexp)					 const QString& errormsg)		// Error message for error dialog{	// Send	logStream << ">>> " << sendBuffer;	write (kSocket.socket(), sendBuffer.latin1(), sendBuffer.length());	// Receive confirmation	QByteArray response (1024);	int ret;	ret = getResponse (&kSocket, response.data(), response.size());	logStream << "<<< " << (const char*) response;	// Check if the confirmation was correct	if (QString(response).find (expect) == -1) {		QString msg;		msg = errormsg +			i18n("\n\nPOPMail conduit sent to SMTP server:\n") +			sendBuffer +			i18n("\nSMTP server responded with:\n") +			QString(response);		showMessage (msg);		kdWarning() << __FUNCTION__ << ": SMTP error: " << msg << endl;		DEBUGCONDUIT << __FUNCTION__ << ": SMTP error: " << logBuffer << endl;		return -1;	}	return 0;}