comparison src/lspst.c @ 110:7133b39975f7 stable-0-6-22

patch from David Cuadrado to process emails with type PST_TYPE_OTHER base64_encode_multiple() may insert newline, needs larger malloc subject lines shorter than 2 bytes could segfault
author Carl Byington <carl@five-ten-sg.com>
date Fri, 28 Nov 2008 11:36:53 -0800
parents 3cb02cb1e6cd
children 0f1492b7fe8b
comparison
equal deleted inserted replaced
109:7947334d53ad 110:7133b39975f7
93 printf("Contact"); 93 printf("Contact");
94 if (item->contact->fullname) 94 if (item->contact->fullname)
95 printf("\t%s", pst_rfc2426_escape(item->contact->fullname)); 95 printf("\t%s", pst_rfc2426_escape(item->contact->fullname));
96 printf("\n"); 96 printf("\n");
97 97
98 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT)) { 98 } else if (item->email && (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT || item->type == PST_TYPE_OTHER)) {
99 // Process Email item 99 // Process Email item
100 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_REPORT)) { 100 if ((ff.type != PST_TYPE_NOTE) && (ff.type != PST_TYPE_REPORT) && (ff.type != PST_TYPE_OTHER)) {
101 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n")); 101 DEBUG_MAIN(("main: I have an email, but the folder isn't an email folder. Processing anyway\n"));
102 } 102 }
103 printf("Email"); 103 printf("Email");
104 if (item->email->outlook_sender_name) 104 if (item->email->outlook_sender_name)
105 printf("\tFrom: %s", item->email->outlook_sender_name); 105 printf("\tFrom: %s", item->email->outlook_sender_name);