summaryrefslogtreecommitdiff
authoralwin <alwin>2004-10-23 19:42:19 (UTC)
committer alwin <alwin>2004-10-23 19:42:19 (UTC)
commitb3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af (patch) (side-by-side diff)
tree993e629f5f8c1dcf66e1c294d840cc4aa0100ae1
parentb5d111eb79896d02aa13d41a04ce6aa4dbc4aa49 (diff)
downloadopie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.zip
opie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.tar.gz
opie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.tar.bz2
holla - fixed a wonderfull bug letting opie-mail crash when
accessing some pop3-server
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/genericwrapper.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp
index 3e4293b..1caa375 100644
--- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp
@@ -139,3 +139,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
if (current_rec >= 10) {
- odebug << "too deep recursion!" << oendl;
+ odebug << "too deep recursion!" << oendl;
}
@@ -276,3 +276,3 @@ QString Genericwrapper::parseAddressList( mailimf_address_list *list )
default:
- odebug << "Generic: unkown mailimf address type" << oendl;
+ odebug << "Generic: unkown mailimf address type" << oendl;
break;
@@ -369,3 +369,3 @@ void Genericwrapper::cleanMimeCache()
bodyCache.clear();
- odebug << "Genericwrapper: cache cleaned" << oendl;
+ odebug << "Genericwrapper: cache cleaned" << oendl;
}
@@ -398,3 +398,3 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &
if (r != MAIL_NO_ERROR) {
- odebug << "Error message list" << oendl;
+ odebug << "Error message list" << oendl;
return;
@@ -403,3 +403,3 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &
if (r != MAIL_NO_ERROR) {
- odebug << "Error filling message list" << oendl;
+ odebug << "Error filling message list" << oendl;
if (env_list) {
@@ -417,3 +417,3 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &
if (msg->msg_fields == NULL) {
- //odebug << "could not fetch envelope of message " << i << "" << oendl;
+ //odebug << "could not fetch envelope of message " << i << "" << oendl;
continue;
@@ -450,5 +450,4 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > &
// crashes when accessing pop3 account?
- if (single_fields.fld_message_id->mid_value) {
+ if (single_fields.fld_message_id && single_fields.fld_message_id->mid_value) {
mail->setMsgid(QString(single_fields.fld_message_id->mid_value));
- odebug << "Msgid == " << mail->Msgid().latin1() << "" << oendl;
}