author | jgf <jgf> | 2004-01-07 00:24:52 (UTC) |
---|---|---|
committer | jgf <jgf> | 2004-01-07 00:24:52 (UTC) |
commit | 656e80e7b35c4aefd49ffe7756d895f4e7370de1 (patch) (unidiff) | |
tree | 41448111df3e76f9185203f97405b141e830d9e6 /noncore/net/mail/libmailwrapper/genericwrapper.cpp | |
parent | a0ea0a96c91d95aa379a086238de18075ee5e4b5 (diff) | |
download | opie-656e80e7b35c4aefd49ffe7756d895f4e7370de1.zip opie-656e80e7b35c4aefd49ffe7756d895f4e7370de1.tar.gz opie-656e80e7b35c4aefd49ffe7756d895f4e7370de1.tar.bz2 |
pop3 crash - quick fix
Diffstat (limited to 'noncore/net/mail/libmailwrapper/genericwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp index 714396b..2d1596d 100644 --- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp | |||
@@ -479,25 +479,26 @@ void Genericwrapper::parseList(QList<RecMail> &target,mailsession*session,const | |||
479 | if (single_fields.fld_subject) | 479 | if (single_fields.fld_subject) |
480 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); | 480 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); |
481 | if (single_fields.fld_from) | 481 | if (single_fields.fld_from) |
482 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); | 482 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); |
483 | if (single_fields.fld_to) | 483 | if (single_fields.fld_to) |
484 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); | 484 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); |
485 | if (single_fields.fld_cc) | 485 | if (single_fields.fld_cc) |
486 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); | 486 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); |
487 | if (single_fields.fld_bcc) | 487 | if (single_fields.fld_bcc) |
488 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); | 488 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); |
489 | if (single_fields.fld_orig_date) | 489 | if (single_fields.fld_orig_date) |
490 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); | 490 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); |
491 | if (single_fields.fld_message_id->mid_value) | 491 | // crashes when accessing pop3 account |
492 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); | 492 | // if (single_fields.fld_message_id->mid_value) |
493 | // mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); | ||
493 | refs = single_fields.fld_references; | 494 | refs = single_fields.fld_references; |
494 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { | 495 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { |
495 | char * text = (char*)refs->mid_list->first->data; | 496 | char * text = (char*)refs->mid_list->first->data; |
496 | mail->setReplyto(QString(text)); | 497 | mail->setReplyto(QString(text)); |
497 | } | 498 | } |
498 | target.append(mail); | 499 | target.append(mail); |
499 | } | 500 | } |
500 | if (env_list) { | 501 | if (env_list) { |
501 | mailmessage_list_free(env_list); | 502 | mailmessage_list_free(env_list); |
502 | } | 503 | } |
503 | } | 504 | } |