-rw-r--r-- | noncore/net/mail/genericwrapper.cpp | 2 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/genericwrapper.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/mail/genericwrapper.cpp b/noncore/net/mail/genericwrapper.cpp index 5de9299..62116ba 100644 --- a/noncore/net/mail/genericwrapper.cpp +++ b/noncore/net/mail/genericwrapper.cpp | |||
@@ -446,33 +446,33 @@ void Genericwrapper::parseList(QList<RecMail> &target,mailsession*session,const | |||
446 | if (msg->msg_fields == NULL) { | 446 | if (msg->msg_fields == NULL) { |
447 | qDebug("could not fetch envelope of message %i", i); | 447 | qDebug("could not fetch envelope of message %i", i); |
448 | continue; | 448 | continue; |
449 | } | 449 | } |
450 | RecMail * mail = new RecMail(); | 450 | RecMail * mail = new RecMail(); |
451 | mail->setWrapper(this); | 451 | mail->setWrapper(this); |
452 | mail_flags * flag_result = 0; | 452 | mail_flags * flag_result = 0; |
453 | r = mailmessage_get_flags(msg,&flag_result); | 453 | r = mailmessage_get_flags(msg,&flag_result); |
454 | if (r == MAIL_ERROR_NOT_IMPLEMENTED) { | 454 | if (r == MAIL_ERROR_NOT_IMPLEMENTED) { |
455 | mFlags.setBit(FLAG_SEEN); | 455 | mFlags.setBit(FLAG_SEEN); |
456 | } | 456 | } |
457 | mailimf_single_fields single_fields; | 457 | mailimf_single_fields single_fields; |
458 | mailimf_single_fields_init(&single_fields, msg->msg_fields); | 458 | mailimf_single_fields_init(&single_fields, msg->msg_fields); |
459 | mail->setMsgsize(msg->msg_size); | 459 | mail->setMsgsize(msg->msg_size); |
460 | mail->setFlags(mFlags); | 460 | mail->setFlags(mFlags); |
461 | mail->setMbox(mailbox); | 461 | mail->setMbox(mailbox); |
462 | mail->setNumber(i+1); | 462 | mail->setNumber(msg->msg_index); |
463 | if (single_fields.fld_subject) | 463 | if (single_fields.fld_subject) |
464 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); | 464 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); |
465 | if (single_fields.fld_from) | 465 | if (single_fields.fld_from) |
466 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); | 466 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); |
467 | if (single_fields.fld_to) | 467 | if (single_fields.fld_to) |
468 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); | 468 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); |
469 | if (single_fields.fld_cc) | 469 | if (single_fields.fld_cc) |
470 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); | 470 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); |
471 | if (single_fields.fld_bcc) | 471 | if (single_fields.fld_bcc) |
472 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); | 472 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); |
473 | if (single_fields.fld_orig_date) | 473 | if (single_fields.fld_orig_date) |
474 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); | 474 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); |
475 | if (single_fields.fld_message_id->mid_value) | 475 | if (single_fields.fld_message_id->mid_value) |
476 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); | 476 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); |
477 | refs = single_fields.fld_references; | 477 | refs = single_fields.fld_references; |
478 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { | 478 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { |
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp index 5de9299..62116ba 100644 --- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp | |||
@@ -446,33 +446,33 @@ void Genericwrapper::parseList(QList<RecMail> &target,mailsession*session,const | |||
446 | if (msg->msg_fields == NULL) { | 446 | if (msg->msg_fields == NULL) { |
447 | qDebug("could not fetch envelope of message %i", i); | 447 | qDebug("could not fetch envelope of message %i", i); |
448 | continue; | 448 | continue; |
449 | } | 449 | } |
450 | RecMail * mail = new RecMail(); | 450 | RecMail * mail = new RecMail(); |
451 | mail->setWrapper(this); | 451 | mail->setWrapper(this); |
452 | mail_flags * flag_result = 0; | 452 | mail_flags * flag_result = 0; |
453 | r = mailmessage_get_flags(msg,&flag_result); | 453 | r = mailmessage_get_flags(msg,&flag_result); |
454 | if (r == MAIL_ERROR_NOT_IMPLEMENTED) { | 454 | if (r == MAIL_ERROR_NOT_IMPLEMENTED) { |
455 | mFlags.setBit(FLAG_SEEN); | 455 | mFlags.setBit(FLAG_SEEN); |
456 | } | 456 | } |
457 | mailimf_single_fields single_fields; | 457 | mailimf_single_fields single_fields; |
458 | mailimf_single_fields_init(&single_fields, msg->msg_fields); | 458 | mailimf_single_fields_init(&single_fields, msg->msg_fields); |
459 | mail->setMsgsize(msg->msg_size); | 459 | mail->setMsgsize(msg->msg_size); |
460 | mail->setFlags(mFlags); | 460 | mail->setFlags(mFlags); |
461 | mail->setMbox(mailbox); | 461 | mail->setMbox(mailbox); |
462 | mail->setNumber(i+1); | 462 | mail->setNumber(msg->msg_index); |
463 | if (single_fields.fld_subject) | 463 | if (single_fields.fld_subject) |
464 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); | 464 | mail->setSubject( convert_String(single_fields.fld_subject->sbj_value)); |
465 | if (single_fields.fld_from) | 465 | if (single_fields.fld_from) |
466 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); | 466 | mail->setFrom(parseMailboxList(single_fields.fld_from->frm_mb_list)); |
467 | if (single_fields.fld_to) | 467 | if (single_fields.fld_to) |
468 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); | 468 | mail->setTo( parseAddressList( single_fields.fld_to->to_addr_list ) ); |
469 | if (single_fields.fld_cc) | 469 | if (single_fields.fld_cc) |
470 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); | 470 | mail->setCC( parseAddressList( single_fields.fld_cc->cc_addr_list ) ); |
471 | if (single_fields.fld_bcc) | 471 | if (single_fields.fld_bcc) |
472 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); | 472 | mail->setBcc( parseAddressList( single_fields.fld_bcc->bcc_addr_list ) ); |
473 | if (single_fields.fld_orig_date) | 473 | if (single_fields.fld_orig_date) |
474 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); | 474 | mail->setDate( parseDateTime( single_fields.fld_orig_date->dt_date_time ) ); |
475 | if (single_fields.fld_message_id->mid_value) | 475 | if (single_fields.fld_message_id->mid_value) |
476 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); | 476 | mail->setMsgid(QString(single_fields.fld_message_id->mid_value)); |
477 | refs = single_fields.fld_references; | 477 | refs = single_fields.fld_references; |
478 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { | 478 | if (refs && refs->mid_list && clist_count(refs->mid_list)) { |