comparison src/pst2dii.cpp.in @ 143:fdc58ad2c758 stable-0-6-28

fix embedded rfc822 messages with attachments
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Feb 2009 12:33:49 -0800
parents 16770fc77139
children 0695de3b5a98
comparison
equal deleted inserted replaced
142:2189a6b8134e 143:fdc58ad2c758
606 pst_item *item = NULL; 606 pst_item *item = NULL;
607 DEBUG_ENT("process"); 607 DEBUG_ENT("process");
608 create_enter_dir(ff, parent, outeritem); 608 create_enter_dir(ff, parent, outeritem);
609 while (d_ptr) { 609 while (d_ptr) {
610 if (d_ptr->desc) { 610 if (d_ptr->desc) {
611 item = pst_parse_item(&pstfile, d_ptr); 611 item = pst_parse_item(&pstfile, d_ptr, NULL);
612 DEBUG_INFO(("item pointer is %p\n", item)); 612 DEBUG_INFO(("item pointer is %p\n", item));
613 if (item) { 613 if (item) {
614 if (item->folder && d_ptr->child ) { 614 if (item->folder && d_ptr->child ) {
615 //if this is a non-empty folder, we want to recurse into it 615 //if this is a non-empty folder, we want to recurse into it
616 fprintf(stderr, "entering folder %s\n", item->file_as); 616 fprintf(stderr, "entering folder %s\n", item->file_as);
702 RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n")); 702 RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n"));
703 703
704 pst_load_extended_attributes(&pstfile); 704 pst_load_extended_attributes(&pstfile);
705 705
706 d_ptr = pstfile.d_head; // first record is main record 706 d_ptr = pstfile.d_head; // first record is main record
707 item = (pst_item*)pst_parse_item(&pstfile, d_ptr); 707 item = (pst_item*)pst_parse_item(&pstfile, d_ptr, NULL);
708 if (!item || !item->message_store) { 708 if (!item || !item->message_store) {
709 DEBUG_RET(); 709 DEBUG_RET();
710 DIE(("main: Could not get root record\n")); 710 DIE(("main: Could not get root record\n"));
711 } 711 }
712 712