comparison src/lspst.c @ 198:7c60d6d1c681

decode more recurrence mapi elements
author Carl Byington <carl@five-ten-sg.com>
date Tue, 12 May 2009 19:34:49 -0700
parents 320cfcba8058
children e3a46f66332b
comparison
equal deleted inserted replaced
197:07ceebd115ce 198:7c60d6d1c681
73 pst_convert_utf8(item, &item->file_as); 73 pst_convert_utf8(item, &item->file_as);
74 printf("Folder \"%s\"\n", item->file_as.str); 74 printf("Folder \"%s\"\n", item->file_as.str);
75 process(item, d_ptr->child); 75 process(item, d_ptr->child);
76 76
77 } else if (item->contact && (item->type == PST_TYPE_CONTACT)) { 77 } else if (item->contact && (item->type == PST_TYPE_CONTACT)) {
78 if (!ff.type) ff.type = item->type;
78 // Process Contact item 79 // Process Contact item
79 if (ff.type != PST_TYPE_CONTACT) { 80 if (ff.type != PST_TYPE_CONTACT) {
80 DEBUG_MAIN(("main: I have a contact, but the folder isn't a contacts folder. Processing anyway\n")); 81 DEBUG_MAIN(("main: I have a contact, but the folder isn't a contacts folder. Processing anyway\n"));
81 } 82 }
82 printf("Contact"); 83 printf("Contact");
83 if (item->contact->fullname.str) 84 if (item->contact->fullname.str)
84 printf("\t%s", pst_rfc2426_escape(item->contact->fullname.str)); 85 printf("\t%s", pst_rfc2426_escape(item->contact->fullname.str));
85 printf("\n"); 86 printf("\n");
86 87
87 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT)) { 88 } else if (item->email && ((item->type == PST_TYPE_NOTE) || (item->type == PST_TYPE_SCHEDULE) || (item->type == PST_TYPE_REPORT))) {
89 if (!ff.type) ff.type = item->type;
88 // Process Email item 90 // Process Email item
89 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_REPORT)) { 91 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_SCHEDULE) && (ff.type != PST_TYPE_REPORT)) {
90 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n")); 92 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n"));
91 } 93 }
92 printf("Email"); 94 printf("Email");
93 if (item->email->outlook_sender_name.str) 95 if (item->email->outlook_sender_name.str)
94 printf("\tFrom: %s", item->email->outlook_sender_name.str); 96 printf("\tFrom: %s", item->email->outlook_sender_name.str);
95 if (item->subject.str) 97 if (item->subject.str)
96 printf("\tSubject: %s", item->subject.str); 98 printf("\tSubject: %s", item->subject.str);
97 printf("\n"); 99 printf("\n");
98 100
99 } else if (item->journal && (item->type == PST_TYPE_JOURNAL)) { 101 } else if (item->journal && (item->type == PST_TYPE_JOURNAL)) {
102 if (!ff.type) ff.type = item->type;
100 // Process Journal item 103 // Process Journal item
101 if (ff.type != PST_TYPE_JOURNAL) { 104 if (ff.type != PST_TYPE_JOURNAL) {
102 DEBUG_MAIN(("main: I have a journal entry, but folder isn't specified as a journal type. Processing...\n")); 105 DEBUG_MAIN(("main: I have a journal entry, but folder isn't specified as a journal type. Processing...\n"));
103 } 106 }
104 if (item->subject.str) 107 if (item->subject.str)
105 printf("Journal\t%s\n", pst_rfc2426_escape(item->subject.str)); 108 printf("Journal\t%s\n", pst_rfc2426_escape(item->subject.str));
106 109
107 } else if (item->appointment && (item->type == PST_TYPE_APPOINTMENT)) { 110 } else if (item->appointment && (item->type == PST_TYPE_APPOINTMENT)) {
111 if (!ff.type) ff.type = item->type;
108 // Process Calendar Appointment item 112 // Process Calendar Appointment item
109 DEBUG_MAIN(("main: Processing Appointment Entry\n")); 113 DEBUG_MAIN(("main: Processing Appointment Entry\n"));
110 if (ff.type != PST_TYPE_APPOINTMENT) { 114 if (ff.type != PST_TYPE_APPOINTMENT) {
111 DEBUG_MAIN(("main: I have an appointment, but folder isn't specified as an appointment type. Processing...\n")); 115 DEBUG_MAIN(("main: I have an appointment, but folder isn't specified as an appointment type. Processing...\n"));
112 } 116 }