author | alwin <alwin> | 2004-10-23 19:42:19 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-23 19:42:19 (UTC) |
commit | b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af (patch) (side-by-side diff) | |
tree | 993e629f5f8c1dcf66e1c294d840cc4aa0100ae1 | |
parent | b5d111eb79896d02aa13d41a04ce6aa4dbc4aa49 (diff) | |
download | opie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.zip opie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.tar.gz opie-b3d4cb2af9cd4b3a56b581ba89a4c9fa0d9312af.tar.bz2 |
holla - fixed a wonderfull bug letting opie-mail crash when
accessing some pop3-server
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 3 |
1 files changed, 1 insertions, 2 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 @@ -448,9 +448,8 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & if (single_fields.fld_orig_date) 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; } if (single_fields.fld_reply_to) { |