-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 15 |
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 @@ -138,5 +138,5 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m { if (current_rec >= 10) { - odebug << "too deep recursion!" << oendl; + odebug << "too deep recursion!" << oendl; } if (!message || !mime) { @@ -275,5 +275,5 @@ QString Genericwrapper::parseAddressList( mailimf_address_list *list ) break; default: - odebug << "Generic: unkown mailimf address type" << oendl; + odebug << "Generic: unkown mailimf address type" << oendl; break; } @@ -368,5 +368,5 @@ void Genericwrapper::cleanMimeCache() } bodyCache.clear(); - odebug << "Genericwrapper: cache cleaned" << oendl; + odebug << "Genericwrapper: cache cleaned" << oendl; } @@ -397,10 +397,10 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & r = mailsession_get_messages_list(session,&env_list); if (r != MAIL_NO_ERROR) { - odebug << "Error message list" << oendl; + odebug << "Error message list" << oendl; return; } r = mailsession_get_envelopes_list(session, env_list); if (r != MAIL_NO_ERROR) { - odebug << "Error filling message list" << oendl; + odebug << "Error filling message list" << oendl; if (env_list) { mailmessage_list_free(env_list); @@ -416,5 +416,5 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & msg = (mailmessage*)carray_get(env_list->msg_tab, i); if (msg->msg_fields == NULL) { - //odebug << "could not fetch envelope of message " << i << "" << oendl; + //odebug << "could not fetch envelope of message " << i << "" << oendl; continue; } @@ -449,7 +449,6 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); // 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; } |