summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-18 11:01:02 (UTC)
committer zautrix <zautrix>2004-10-18 11:01:02 (UTC)
commitc613ac44ea26c66305252feb4ed4ad17f79b5cc6 (patch) (side-by-side diff)
tree3dbdfc228c6103025781a20292f8855b24b55dd1
parenta83b6694d2f80ec58f6eb88684897052c69276a0 (diff)
downloadkdepimpi-c613ac44ea26c66305252feb4ed4ad17f79b5cc6.zip
kdepimpi-c613ac44ea26c66305252feb4ed4ad17f79b5cc6.tar.gz
kdepimpi-c613ac44ea26c66305252feb4ed4ad17f79b5cc6.tar.bz2
some mail imap changes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/imapwrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmicromail/libmailwrapper/imapwrapper.cpp b/kmicromail/libmailwrapper/imapwrapper.cpp
index a6688ed..8150453 100644
--- a/kmicromail/libmailwrapper/imapwrapper.cpp
+++ b/kmicromail/libmailwrapper/imapwrapper.cpp
@@ -60,25 +60,25 @@ 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 +tr(" message %1 of %2").arg( mCurrent++).arg(mMax);
else mess = mProgrMess +tr(" message %1").arg( mCurrent++);
Global::statusMessage(mess);
- qDebug("Progress %s %s", mess.latin1(), m.latin1());
+ //qDebug("Progress %s %s", mess.latin1(), m.latin1());
qApp->processEvents();
}
bool IMAPwrapper::start_tls(bool force_tls)
{
int err;
bool try_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;
@@ -258,25 +258,25 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma
if (last == 0) {
Global::statusMessage(tr("Mailbox has no mails"));
return;
} else {
}
progress( tr("Fetch "));
mMax = last;
//qDebug("last %d ", last);
Global::statusMessage(tr("Fetching header list"));
qApp->processEvents();
/* the range has to start at 1!!! not with 0!!!! */
//LR the access to web.de imap server is no working with value 1
- qDebug("interval %d - %d ", tryAgain, last-1+tryAgain );
+ //qDebug("interval %d - %d ", tryAgain, last-1+tryAgain );
set = mailimap_set_new_interval( tryAgain, last );
fetchType = mailimap_fetch_type_new_fetch_att_list_empty();
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_envelope());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_flags());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_internaldate());
mailimap_fetch_type_new_fetch_att_list_add(fetchType,mailimap_fetch_att_new_rfc822_size());
err = mailimap_fetch( m_imap, set, fetchType, &result );
mailimap_set_free( set );
mailimap_fetch_type_free( fetchType );
QString date,subject,from;
@@ -293,25 +293,25 @@ void IMAPwrapper::listMessages(const QString&mailbox,QValueList<Opie::Core::OSma
if (m) {
if ( maxSizeInKb == 0 || m->Msgsize()<=maxSizeInKb*1024 ) {
m->setNumber(i);
m->setMbox(mailbox);
m->setWrapper(this);
target.append(m);
}
}
}
Global::statusMessage(tr("Mailbox has %1 mails").arg(target.count()));
} else {
--tryAgain;
- --tryAgain;
+ --tryAgain;//disabled tryagain by adding this line
if ( tryAgain < 0 )
Global::statusMessage(tr("Error fetching headers: %1").arg(m_imap->imap_response));
else
qDebug("try again... ");
}
if (result) mailimap_fetch_list_free(result);
}
}
QValueList<Opie::Core::OSmartPointer<Folder> >* IMAPwrapper::listFolders()
{