-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 | |||
@@ -439,27 +439,26 @@ void Genericwrapper::parseList(QValueList<Opie::Core::OSmartPointer<RecMail> > & | |||
439 | if (single_fields.fld_to) | 439 | if (single_fields.fld_to) |
440 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); | 440 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); |
441 | } else { | 441 | } else { |
442 | mail->setTo(mailbox); | 442 | mail->setTo(mailbox); |
443 | } | 443 | } |
444 | if (single_fields.fld_cc) | 444 | if (single_fields.fld_cc) |
445 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); | 445 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); |
446 | if (single_fields.fld_bcc) | 446 | if (single_fields.fld_bcc) |
447 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); | 447 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); |
448 | if (single_fields.fld_orig_date) | 448 | if (single_fields.fld_orig_date) |
449 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); | 449 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); |
450 | // crashes when accessing pop3 account? | 450 | // crashes when accessing pop3 account? |
451 | if (single_fields.fld_message_id->mid_value) { | 451 | if (single_fields.fld_message_id && single_fields.fld_message_id->mid_value) { |
452 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); | 452 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); |
453 | odebug << "Msgid == " << mail->Msgid().latin1() << "" << oendl; | ||
454 | } | 453 | } |
455 | 454 | ||
456 | if (single_fields.fld_reply_to) { | 455 | if (single_fields.fld_reply_to) { |
457 | QStringList t = parseAddressList(single_fields.fld_reply_to->rt_addr_list); | 456 | QStringList t = parseAddressList(single_fields.fld_reply_to->rt_addr_list); |
458 | if (t.count()>0) { | 457 | if (t.count()>0) { |
459 | mail->setReplyto(t[0]); | 458 | mail->setReplyto(t[0]); |
460 | } | 459 | } |
461 | } | 460 | } |
462 | #if 0 | 461 | #if 0 |
463 | refs = single_fields.fld_references; | 462 | refs = single_fields.fld_references; |
464 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { | 463 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { |
465 | char * text = (char*)refs->mid_list->first->data; | 464 | char * text = (char*)refs->mid_list->first->data; |