comparison src/lspst.c @ 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 06aa84023b48
comparison
equal deleted inserted replaced
142:2189a6b8134e 143:fdc58ad2c758
59 ff.skip_count++; 59 ff.skip_count++;
60 } 60 }
61 else { 61 else {
62 DEBUG_MAIN(("main: Desc Email ID %x [d_ptr->id = %x]\n", d_ptr->desc->id, d_ptr->id)); 62 DEBUG_MAIN(("main: Desc Email ID %x [d_ptr->id = %x]\n", d_ptr->desc->id, d_ptr->id));
63 63
64 item = pst_parse_item(&pstfile, d_ptr); 64 item = pst_parse_item(&pstfile, d_ptr, NULL);
65 DEBUG_MAIN(("main: About to process item @ %p.\n", item)); 65 DEBUG_MAIN(("main: About to process item @ %p.\n", item));
66 if (item) { 66 if (item) {
67 if (item->message_store) { 67 if (item->message_store) {
68 // there should only be one message_store, and we have already done it 68 // there should only be one message_store, and we have already done it
69 DIE(("main: A second message_store has been found. Sorry, this must be an error.\n")); 69 DIE(("main: A second message_store has been found. Sorry, this must be an error.\n"));
214 if (pst_load_index(&pstfile)) DIE(("Index Error\n")); 214 if (pst_load_index(&pstfile)) DIE(("Index Error\n"));
215 215
216 pst_load_extended_attributes(&pstfile); 216 pst_load_extended_attributes(&pstfile);
217 217
218 d_ptr = pstfile.d_head; // first record is main record 218 d_ptr = pstfile.d_head; // first record is main record
219 item = pst_parse_item(&pstfile, d_ptr); 219 item = pst_parse_item(&pstfile, d_ptr, NULL);
220 if (!item || !item->message_store) { 220 if (!item || !item->message_store) {
221 DEBUG_RET(); 221 DEBUG_RET();
222 DIE(("main: Could not get root record\n")); 222 DIE(("main: Could not get root record\n"));
223 } 223 }
224 224