From f09f685be0540e98cc33bc4f664a812aed756926 Mon Sep 17 00:00:00 2001 From: groucho Date: Tue, 29 Apr 2003 08:04:34 +0000 Subject: - added ReplyAll for CC: addressing - added a download button in mail view - smaller layout fixes - now it's getting to be real useful --- (limited to 'noncore/unsupported/mailit/popclient.cpp') diff --git a/noncore/unsupported/mailit/popclient.cpp b/noncore/unsupported/mailit/popclient.cpp index 6105d09..fedc4e2 100644 --- a/noncore/unsupported/mailit/popclient.cpp +++ b/noncore/unsupported/mailit/popclient.cpp @@ -29,6 +29,7 @@ extern "C" { PopClient::PopClient() { + socket = new QSocket(this, "popClient"); connect(socket, SIGNAL(error(int)), this, SLOT(errorHandling(int))); connect(socket, SIGNAL(connected()), this, SLOT(connectionEstablished())); @@ -117,6 +118,7 @@ void PopClient::incomingData() char md5Digest[16]; // if ( !socket->canReadLine() ) // return; + response = socket->readLine(); @@ -151,19 +153,20 @@ void PopClient::incomingData() status = Pass; } - break; + break; } case Pass: { *stream << "PASS " << popPassword << "\r\n"; - status = Stat; + status = Stat; + break; } //ask for number of messages case Stat: { if (response[0] == '+') { *stream << "STAT" << "\r\n"; - status = Mcnt; + status = Mcnt; } else errorHandling(ErrLoginFailed); break; } @@ -179,8 +182,8 @@ void PopClient::incomingData() if (synchronize) { //messages deleted from server, reload all - if (newMessages < lastSync) - lastSync = 0; + if (newMessages < lastSync) + lastSync = 0; messageCount = 1; } @@ -273,7 +276,6 @@ void PopClient::incomingData() if (x == -1) { break; } else { //message reach entire size - if ( (selected)||(mailSize <= headerLimit)) //mail size limit is not used if late download is active { emit newMessage(message, messageCount-1, mailSize, TRUE); -- cgit v0.9.0.2