comparison src/pst2dii.cpp.in @ 64:2c6040b6e8f8

packaging for Fedora (#434727)
author Carl Byington <carl@five-ten-sg.com>
date Tue, 26 Feb 2008 17:06:33 -0800
parents cfd6175f9334
children 90aa7814ad1f
comparison
equal deleted inserted replaced
63:cfd6175f9334 64:2c6040b6e8f8
33 int32_t type; 33 int32_t type;
34 file_ll() { 34 file_ll() {
35 stored_count = 0; 35 stored_count = 0;
36 email_count = 0; 36 email_count = 0;
37 skip_count = 0; 37 skip_count = 0;
38 type - 0; 38 type = 0;
39 }; 39 };
40 }; 40 };
41
42 41
43 // global settings 42 // global settings
44 char* convert = "@CONVERT@"; // fully qualified path of the convert program from image magick 43 char* convert = "@CONVERT@"; // fully qualified path of the convert program from image magick
45 char* prog_name = NULL; // our arg0 name 44 char* prog_name = NULL; // our arg0 name
46 char* bates_prefix = ""; // string to prefix bates numbers 45 char* bates_prefix = ""; // string to prefix bates numbers
481 if (mybcc.empty()) write_simple("BCC", item->email->bcc_address); 480 if (mybcc.empty()) write_simple("BCC", item->email->bcc_address);
482 else write_simple("BCC", mybcc); 481 else write_simple("BCC", mybcc);
483 if (item->email->sent_date) { 482 if (item->email->sent_date) {
484 time_t t = fileTimeToUnixTime(item->email->sent_date, NULL); 483 time_t t = fileTimeToUnixTime(item->email->sent_date, NULL);
485 char c_time[C_TIME_SIZE]; 484 char c_time[C_TIME_SIZE];
486 strftime(c_time, C_TIME_SIZE, "%F +0000", gmtime(&t)); 485 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t));
487 write_simple("DATESENT", c_time); 486 write_simple("DATESENT", c_time);
488 strftime(c_time, C_TIME_SIZE, "%T +0000", gmtime(&t)); 487 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t));
489 write_simple("TIMESENT", c_time); 488 write_simple("TIMESENT", c_time);
490 } 489 }
491 if (item->email->arrival_date) { 490 if (item->email->arrival_date) {
492 time_t t = fileTimeToUnixTime(item->email->arrival_date, NULL); 491 time_t t = fileTimeToUnixTime(item->email->arrival_date, NULL);
493 char c_time[C_TIME_SIZE]; 492 char c_time[C_TIME_SIZE];
494 strftime(c_time, C_TIME_SIZE, "%F +0000", gmtime(&t)); 493 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t));
495 write_simple("DATERCVD", c_time); 494 write_simple("DATERCVD", c_time);
496 strftime(c_time, C_TIME_SIZE, "%T +0000", gmtime(&t)); 495 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t));
497 write_simple("TIMERCVD", c_time); 496 write_simple("TIMERCVD", c_time);
498 } 497 }
499 if (item->email->subject) { 498 if (item->email->subject) {
500 write_simple("SUBJECT", item->email->subject->subj); 499 write_simple("SUBJECT", item->email->subject->subj);
501 } 500 }