comparison src/lspst.c @ 154:581fab9f1dc7

avoid emitting bogus empty email messages into contacts and calendar files
author Carl Byington <carl@five-ten-sg.com>
date Sat, 14 Mar 2009 15:13:27 -0700
parents cda7c812ec01
children ab384fed78c5
comparison
equal deleted inserted replaced
153:0b1766da9be8 154:581fab9f1dc7
83 printf("Contact"); 83 printf("Contact");
84 if (item->contact->fullname.str) 84 if (item->contact->fullname.str)
85 printf("\t%s", pst_rfc2426_escape(item->contact->fullname.str)); 85 printf("\t%s", pst_rfc2426_escape(item->contact->fullname.str));
86 printf("\n"); 86 printf("\n");
87 87
88 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT || item->type == PST_TYPE_OTHER)) { 88 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT)) {
89 // Process Email item 89 // Process Email item
90 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_REPORT) && (ff.type != PST_TYPE_OTHER)) { 90 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_REPORT)) {
91 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n")); 91 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n"));
92 } 92 }
93 printf("Email"); 93 printf("Email");
94 if (item->email->outlook_sender_name.str) 94 if (item->email->outlook_sender_name.str)
95 printf("\tFrom: %s", item->email->outlook_sender_name.str); 95 printf("\tFrom: %s", item->email->outlook_sender_name.str);