author | groucho <groucho> | 2003-04-29 08:04:34 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-04-29 08:04:34 (UTC) |
commit | f09f685be0540e98cc33bc4f664a812aed756926 (patch) (unidiff) | |
tree | 10a2193eafd1dc0ae25cd458f3bfa9f0f23522e1 /noncore/net/mailit/popclient.cpp | |
parent | e096c9d1f2be1ec74ede583fc4221871a56ef508 (diff) | |
download | opie-f09f685be0540e98cc33bc4f664a812aed756926.zip opie-f09f685be0540e98cc33bc4f664a812aed756926.tar.gz opie-f09f685be0540e98cc33bc4f664a812aed756926.tar.bz2 |
- added ReplyAll for CC: addressing
- added a download button in mail view
- smaller layout fixes
- now it's getting to be real useful
Diffstat (limited to 'noncore/net/mailit/popclient.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/popclient.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/noncore/net/mailit/popclient.cpp b/noncore/net/mailit/popclient.cpp index 6105d09..fedc4e2 100644 --- a/noncore/net/mailit/popclient.cpp +++ b/noncore/net/mailit/popclient.cpp | |||
@@ -29,6 +29,7 @@ extern "C" { | |||
29 | 29 | ||
30 | PopClient::PopClient() | 30 | PopClient::PopClient() |
31 | { | 31 | { |
32 | |||
32 | socket = new QSocket(this, "popClient"); | 33 | socket = new QSocket(this, "popClient"); |
33 | connect(socket, SIGNAL(error(int)), this, SLOT(errorHandling(int))); | 34 | connect(socket, SIGNAL(error(int)), this, SLOT(errorHandling(int))); |
34 | connect(socket, SIGNAL(connected()), this, SLOT(connectionEstablished())); | 35 | connect(socket, SIGNAL(connected()), this, SLOT(connectionEstablished())); |
@@ -117,6 +118,7 @@ void PopClient::incomingData() | |||
117 | char md5Digest[16]; | 118 | char md5Digest[16]; |
118 | // if ( !socket->canReadLine() ) | 119 | // if ( !socket->canReadLine() ) |
119 | // return; | 120 | // return; |
121 | |||
120 | 122 | ||
121 | response = socket->readLine(); | 123 | response = socket->readLine(); |
122 | 124 | ||
@@ -151,19 +153,20 @@ void PopClient::incomingData() | |||
151 | status = Pass; | 153 | status = Pass; |
152 | } | 154 | } |
153 | 155 | ||
154 | break; | 156 | break; |
155 | } | 157 | } |
156 | 158 | ||
157 | case Pass: { | 159 | case Pass: { |
158 | *stream << "PASS " << popPassword << "\r\n"; | 160 | *stream << "PASS " << popPassword << "\r\n"; |
159 | status = Stat; | 161 | status = Stat; |
162 | |||
160 | break; | 163 | break; |
161 | } | 164 | } |
162 | //ask for number of messages | 165 | //ask for number of messages |
163 | case Stat: { | 166 | case Stat: { |
164 | if (response[0] == '+') { | 167 | if (response[0] == '+') { |
165 | *stream << "STAT" << "\r\n"; | 168 | *stream << "STAT" << "\r\n"; |
166 | status = Mcnt; | 169 | status = Mcnt; |
167 | } else errorHandling(ErrLoginFailed); | 170 | } else errorHandling(ErrLoginFailed); |
168 | break; | 171 | break; |
169 | } | 172 | } |
@@ -179,8 +182,8 @@ void PopClient::incomingData() | |||
179 | 182 | ||
180 | if (synchronize) { | 183 | if (synchronize) { |
181 | //messages deleted from server, reload all | 184 | //messages deleted from server, reload all |
182 | if (newMessages < lastSync) | 185 | if (newMessages < lastSync) |
183 | lastSync = 0; | 186 | lastSync = 0; |
184 | messageCount = 1; | 187 | messageCount = 1; |
185 | } | 188 | } |
186 | 189 | ||
@@ -273,7 +276,6 @@ void PopClient::incomingData() | |||
273 | if (x == -1) { | 276 | if (x == -1) { |
274 | break; | 277 | break; |
275 | } else { //message reach entire size | 278 | } else { //message reach entire size |
276 | |||
277 | if ( (selected)||(mailSize <= headerLimit)) //mail size limit is not used if late download is active | 279 | if ( (selected)||(mailSize <= headerLimit)) //mail size limit is not used if late download is active |
278 | { | 280 | { |
279 | emit newMessage(message, messageCount-1, mailSize, TRUE); | 281 | emit newMessage(message, messageCount-1, mailSize, TRUE); |