author | harlekin <harlekin> | 2004-01-06 12:33:20 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-01-06 12:33:20 (UTC) |
commit | a1270a04613d9adbd72c41ae1cde4683b036eebd (patch) (side-by-side diff) | |
tree | 0ba4084bb84bd7e9e75fe1918f5b0b5cf0059410 /noncore/net/mail/libmailwrapper/pop3wrapper.cpp | |
parent | 1c484a5dfcea2e7e3dc4774c706ca03cab229d40 (diff) | |
download | opie-a1270a04613d9adbd72c41ae1cde4683b036eebd.zip opie-a1270a04613d9adbd72c41ae1cde4683b036eebd.tar.gz opie-a1270a04613d9adbd72c41ae1cde4683b036eebd.tar.bz2 |
less icons
Diffstat (limited to 'noncore/net/mail/libmailwrapper/pop3wrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/pop3wrapper.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp index ec4dcd2..cceb22e 100644 --- a/noncore/net/mail/libmailwrapper/pop3wrapper.cpp +++ b/noncore/net/mail/libmailwrapper/pop3wrapper.cpp @@ -40,5 +40,5 @@ RecBody POP3wrapper::fetchBody( const RecMail &mail ) char *message = 0; size_t length = 0; - + login(); if ( !m_pop3 ) { @@ -52,9 +52,9 @@ RecBody POP3wrapper::fetchBody( const RecMail &mail ) return body; } - + QFile msg_cache(msgTempName); cleanMimeCache(); - + if (mail.getNumber()!=last_msg_id) { if (msg_cache.exists()) { @@ -89,9 +89,9 @@ RecBody POP3wrapper::fetchBody( const RecMail &mail ) } body = parseMail(mailmsg); - + /* clean up */ - if (mailmsg) mailmessage_free(mailmsg); + if (mailmsg) mailmessage_free(mailmsg); if (message) free(message); - + return body; } @@ -154,4 +154,5 @@ void POP3wrapper::login() err = mailfolder_connect(m_folder); if (err != MAIL_NO_ERROR) { + qDebug( QString( "FEHLERNUMMER %1" ).arg( err ) ); Global::statusMessage(tr("Error initializing folder")); mailfolder_free(m_folder); @@ -215,5 +216,5 @@ int POP3wrapper::deleteAllMail(const Folder*) } break; - } + } return res; } @@ -238,5 +239,5 @@ encodedString* POP3wrapper::fetchRawBody(const RecMail&mail) int err = mailsession_get_message(m_folder->fld_session, mail.getNumber(), &mailmsg); err = mailmessage_fetch(mailmsg,&target,&length); - if (mailmsg) mailmessage_free(mailmsg); + if (mailmsg) mailmessage_free(mailmsg); if (target) { res = new encodedString(target,length); |