comparison src/pst2dii.cpp.in @ 146:0695de3b5a98 stable-0-6-29

fix for 64bit on Fedora 11
author Carl Byington <carl@five-ten-sg.com>
date Tue, 24 Feb 2009 15:32:56 -0800
parents fdc58ad2c758
children cda7c812ec01
comparison
equal deleted inserted replaced
145:2da75cc45883 146:0695de3b5a98
382 static void close_pdf(); 382 static void close_pdf();
383 static void close_pdf() 383 static void close_pdf()
384 { 384 {
385 close_png(); 385 close_png();
386 conversion += string(" ") + pdf_name; 386 conversion += string(" ") + pdf_name;
387 system(conversion.c_str()); 387 (void)system(conversion.c_str());
388 for (vector<string>::iterator i=png_names.begin(); i!=png_names.end(); i++) { 388 for (vector<string>::iterator i=png_names.begin(); i!=png_names.end(); i++) {
389 remove((*i).c_str()); 389 remove((*i).c_str());
390 } 390 }
391 fprintf(dii_file, "@D %s\n", pdf_name); 391 fprintf(dii_file, "@D %s\n", pdf_name);
392 } 392 }
560 print_pdf(item->email->body); 560 print_pdf(item->email->body);
561 } else if (item->email->htmlbody) { 561 } else if (item->email->htmlbody) {
562 removeCR(item->email->htmlbody); 562 removeCR(item->email->htmlbody);
563 print_pdf(item->email->htmlbody); 563 print_pdf(item->email->htmlbody);
564 } else if (item->email->encrypted_body || item->email->encrypted_htmlbody) { 564 } else if (item->email->encrypted_body || item->email->encrypted_htmlbody) {
565 print_pdf("The body of this email is encrypted. This isn't supported yet, but the body is now an attachment\n"); 565 char ln[LINE_SIZE];
566 snprintf(ln, sizeof(ln), "%s", "The body of this email is encrypted. This isn't supported yet, but the body is now an attachment\n");
567 print_pdf(ln);
566 } 568 }
567 fprintf(dii_file, "@EMAIL-END\n"); 569 fprintf(dii_file, "@EMAIL-END\n");
568 570
569 int attach_num = 0; 571 int attach_num = 0;
570 for (pst_item_attach* current_attach = item->attach; current_attach; current_attach = current_attach->next) { 572 for (pst_item_attach* current_attach = item->attach; current_attach; current_attach = current_attach->next) {