author | zautrix <zautrix> | 2005-01-23 16:22:03 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-23 16:22:03 (UTC) |
commit | ec69f34e62250f95a1f8757c5d58da0bf330678a (patch) (side-by-side diff) | |
tree | a487425ea28b2dfe706dbca22c1351baddc52549 /kmicromail/libmailwrapper/imapwrapper.cpp | |
parent | abe5f73892c123110faec5648b484628b3265fd6 (diff) | |
download | kdepimpi-ec69f34e62250f95a1f8757c5d58da0bf330678a.zip kdepimpi-ec69f34e62250f95a1f8757c5d58da0bf330678a.tar.gz kdepimpi-ec69f34e62250f95a1f8757c5d58da0bf330678a.tar.bz2 |
xxx
Diffstat (limited to 'kmicromail/libmailwrapper/imapwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/imapwrapper.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp index b890725..d9496af 100644 --- a/kmicromail/libmailwrapper/imapwrapper.cpp +++ b/kmicromail/libmailwrapper/imapwrapper.cpp @@ -38,49 +38,48 @@ int IMAPwrapper::selectMbox(const QString&mbox) } int err = mailimap_select( m_imap, (char*)mbox.latin1()); if ( err != MAILIMAP_NO_ERROR ) { m_Lastmbox = ""; return err; } m_Lastmbox = mbox; return err; } void IMAPwrapper::imap_progress( size_t current, size_t maximum ) { qApp->processEvents(); return; //qDebug("imap progress %d of %d ",current,maximum ); //Global::statusMessage(i18n("Downloading message %1 of %2").arg( current).arg(maximum)); //qApp->processEvents() static unsigned int last = 0; if ( last != current ) IMAPwrapper::progress(); last = current; } void IMAPwrapper::progress( QString m ) { - static QString mProgrMess; if ( m != QString::null ) { mProgrMess = m; mCurrent = 1; return; } QString mess; //qDebug("progress "); if ( mMax ) mess = mProgrMess +i18n(" message %1 of %2").arg( mCurrent++).arg(mMax); else mess = mProgrMess +i18n(" message %1").arg( mCurrent++); Global::statusMessage(mess); //qDebug("Progress %s %s", mess.latin1(), m.latin1()); qApp->processEvents(); } bool IMAPwrapper::start_tls(bool force_tls) { int err; bool try_tls = force_tls; mailimap_capability_data * cap_data = 0; err = mailimap_capability(m_imap,&cap_data); if (err != MAILIMAP_NO_ERROR) { Global::statusMessage("error getting capabilities!"); return false; |