Diffstat (limited to 'kmicromail/libmailwrapper/abstractmail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/abstractmail.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp index 8f67566..88545f8 100644 --- a/kmicromail/libmailwrapper/abstractmail.cpp +++ b/kmicromail/libmailwrapper/abstractmail.cpp | |||
@@ -183,48 +183,49 @@ void AbstractMail::downloadNewMails(const FolderP&fromFolder, AbstractMail*targe | |||
183 | if ( t.count() == 0 ) { | 183 | if ( t.count() == 0 ) { |
184 | Global::statusMessage(tr("There are no new messages")); | 184 | Global::statusMessage(tr("There are no new messages")); |
185 | return; | 185 | return; |
186 | } | 186 | } |
187 | QValueList<RecMailP> e; | 187 | QValueList<RecMailP> e; |
188 | targetMail->listMessages(lfName,e,acc->getMaxMailSize() ); | 188 | targetMail->listMessages(lfName,e,acc->getMaxMailSize() ); |
189 | //qDebug("target has mails %d ", e.count()); | 189 | //qDebug("target has mails %d ", e.count()); |
190 | QValueList<RecMailP> n; | 190 | QValueList<RecMailP> n; |
191 | int iii = 0; | 191 | int iii = 0; |
192 | int count = t.count(); | 192 | int count = t.count(); |
193 | while (iii < count ) { | 193 | while (iii < count ) { |
194 | RecMailP r = (*t.at( iii )); | 194 | RecMailP r = (*t.at( iii )); |
195 | bool found = false; | 195 | bool found = false; |
196 | int jjj = 0; | 196 | int jjj = 0; |
197 | int countE = e.count(); | 197 | int countE = e.count(); |
198 | while (jjj < countE ) { | 198 | while (jjj < countE ) { |
199 | RecMailP re = (*e.at( jjj )); | 199 | RecMailP re = (*e.at( jjj )); |
200 | if ( re->isEqual(r) ) { | 200 | if ( re->isEqual(r) ) { |
201 | found = true; | 201 | found = true; |
202 | break; | 202 | break; |
203 | } | 203 | } |
204 | ++jjj; | 204 | ++jjj; |
205 | } | 205 | } |
206 | if ( !found ) { | 206 | if ( !found ) { |
207 | //qDebug("AAAdate *%s* ", r->isodate.latin1() ); | ||
207 | n.append( r ); | 208 | n.append( r ); |
208 | } | 209 | } |
209 | ++iii; | 210 | ++iii; |
210 | } | 211 | } |
211 | if ( n.count() == 0 ) { | 212 | if ( n.count() == 0 ) { |
212 | Global::statusMessage(tr("There are no new messages")); | 213 | Global::statusMessage(tr("There are no new messages")); |
213 | return; | 214 | return; |
214 | } | 215 | } |
215 | mvcpMailList( n,lfName,targetMail,!acc->getLeaveOnServer()); | 216 | mvcpMailList( n,lfName,targetMail,!acc->getLeaveOnServer()); |
216 | Global::statusMessage(tr("Downloaded %1 messages").arg(n.count())); | 217 | Global::statusMessage(tr("Downloaded %1 messages").arg(n.count())); |
217 | 218 | ||
218 | #if 0 | 219 | #if 0 |
219 | QValueList<RecMailP> t; | 220 | QValueList<RecMailP> t; |
220 | listMessages(fromFolder->getName(),t, maxSizeInKb); | 221 | listMessages(fromFolder->getName(),t, maxSizeInKb); |
221 | mvcpMailList( t,targetFolder,targetWrapper,moveit); | 222 | mvcpMailList( t,targetFolder,targetWrapper,moveit); |
222 | #endif | 223 | #endif |
223 | 224 | ||
224 | } | 225 | } |
225 | void AbstractMail::mvcpAllMails(const FolderP&fromFolder, | 226 | void AbstractMail::mvcpAllMails(const FolderP&fromFolder, |
226 | const QString&targetFolder,AbstractMail*targetWrapper,bool moveit, int maxSizeInKb) | 227 | const QString&targetFolder,AbstractMail*targetWrapper,bool moveit, int maxSizeInKb) |
227 | { | 228 | { |
228 | QValueList<RecMailP> t; | 229 | QValueList<RecMailP> t; |
229 | listMessages(fromFolder->getName(),t, maxSizeInKb); | 230 | listMessages(fromFolder->getName(),t, maxSizeInKb); |
230 | mvcpMailList( t,targetFolder,targetWrapper,moveit); | 231 | mvcpMailList( t,targetFolder,targetWrapper,moveit); |