comparison src/pst2ldif.cpp @ 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 fc11b1d1ad34
children cda7c812ec01
comparison
equal deleted inserted replaced
142:2189a6b8134e 143:fdc58ad2c758
109 static void process(pst_desc_ll *d_ptr); 109 static void process(pst_desc_ll *d_ptr);
110 static void process(pst_desc_ll *d_ptr) { 110 static void process(pst_desc_ll *d_ptr) {
111 pst_item *item = NULL; 111 pst_item *item = NULL;
112 while (d_ptr) { 112 while (d_ptr) {
113 if (d_ptr->desc) { 113 if (d_ptr->desc) {
114 item = pst_parse_item(&pstfile, d_ptr); 114 item = pst_parse_item(&pstfile, d_ptr, NULL);
115 DEBUG_INFO(("item pointer is %p\n", item)); 115 DEBUG_INFO(("item pointer is %p\n", item));
116 if (item) { 116 if (item) {
117 if (item->folder && d_ptr->child && strcasecmp(item->file_as, "Deleted Items")) { 117 if (item->folder && d_ptr->child && strcasecmp(item->file_as, "Deleted Items")) {
118 //if this is a non-empty folder other than deleted items, we want to recurse into it 118 //if this is a non-empty folder other than deleted items, we want to recurse into it
119 fprintf(stderr, "entering folder %s\n", item->file_as); 119 fprintf(stderr, "entering folder %s\n", item->file_as);
607 RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n")); 607 RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n"));
608 608
609 pst_load_extended_attributes(&pstfile); 609 pst_load_extended_attributes(&pstfile);
610 610
611 d_ptr = pstfile.d_head; // first record is main record 611 d_ptr = pstfile.d_head; // first record is main record
612 item = (pst_item*)pst_parse_item(&pstfile, d_ptr); 612 item = (pst_item*)pst_parse_item(&pstfile, d_ptr, NULL);
613 if (!item || !item->message_store) { 613 if (!item || !item->message_store) {
614 DEBUG_RET(); 614 DEBUG_RET();
615 DIE(("main: Could not get root record\n")); 615 DIE(("main: Could not get root record\n"));
616 } 616 }
617 617