diff src/lspst.c @ 167:40e9de445038

improve consistency checking when fetching items from the pst file. avoid putting mixed item types into the same output folder.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Mar 2009 22:31:18 -0700
parents ab384fed78c5
children 6954d315aaa8
line wrap: on
line diff
--- a/src/lspst.c	Tue Mar 17 12:14:43 2009 -0700
+++ b/src/lspst.c	Wed Mar 18 22:31:18 2009 -0700
@@ -11,7 +11,7 @@
 struct file_ll {
     char *dname;
     int32_t stored_count;
-    int32_t email_count;
+    int32_t item_count;
     int32_t skip_count;
     int32_t type;
 };
@@ -29,10 +29,10 @@
 void create_enter_dir(struct file_ll* f, pst_item *item)
 {
     pst_convert_utf8(item, &item->file_as);
-    f->email_count  = 0;
+    f->item_count   = 0;
     f->skip_count   = 0;
     f->type         = item->type;
-    f->stored_count = (item->folder) ? item->folder->email_count : 0;
+    f->stored_count = (item->folder) ? item->folder->item_count : 0;
     f->dname        = (char*) xmalloc(strlen(item->file_as.str)+1);
     strcpy(f->dname, item->file_as.str);
 }