-rw-r--r-- | kmicromail/libmailwrapper/imapwrapper.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp index ca1c7f1..6faa524 100644 --- a/kmicromail/libmailwrapper/imapwrapper.cpp +++ b/kmicromail/libmailwrapper/imapwrapper.cpp @@ -255,5 +255,7 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma } else { } - + + Global::statusMessage(tr("Fetching header list")); + qApp->processEvents(); /* the range has to start at 1!!! not with 0!!!! */ set = mailimap_set_new_interval( 1, last ); @@ -278,5 +280,5 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma RecMail*m = parse_list_result(msg_att); if (m) { - if ( maxSizeInKb == 0 || m->Msgsize()<=maxSizeInKb*1024 ) { + if ( maxSizeInKb == 0 || m->Msgsize()<=maxSizeInKb*1024 ) { m->setNumber(i); m->setMbox(mailbox); @@ -313,4 +315,6 @@ QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders() * it seems like ugly code. and yes - it is ugly code. but the best way. */ + Global::statusMessage(tr("Fetching folder list")); + qApp->processEvents(); QString temp; mask = "INBOX" ; |