Mercurial > libpst
comparison src/pst2dii.cpp.in @ 182:b65e8d0a088a
more cleanup on external names in the shared object file
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 13 Apr 2009 11:39:33 -0700 |
parents | 6954d315aaa8 |
children | 0a4f7ecd7452 |
comparison
equal
deleted
inserted
replaced
181:3b04745ff76d | 182:b65e8d0a088a |
---|---|
478 if (mycc.empty()) write_simple("CC", item->email->cc_address.str); | 478 if (mycc.empty()) write_simple("CC", item->email->cc_address.str); |
479 else write_simple("CC", mycc); | 479 else write_simple("CC", mycc); |
480 if (mybcc.empty()) write_simple("BCC", item->email->bcc_address.str); | 480 if (mybcc.empty()) write_simple("BCC", item->email->bcc_address.str); |
481 else write_simple("BCC", mybcc); | 481 else write_simple("BCC", mybcc); |
482 if (item->email->sent_date) { | 482 if (item->email->sent_date) { |
483 time_t t = pst_fileTimeToUnixTime(item->email->sent_date, NULL); | 483 time_t t = pst_fileTimeToUnixTime(item->email->sent_date); |
484 char c_time[C_TIME_SIZE]; | 484 char c_time[C_TIME_SIZE]; |
485 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); | 485 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); |
486 write_simple("DATESENT", c_time); | 486 write_simple("DATESENT", c_time); |
487 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); | 487 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); |
488 write_simple("TIMESENT", c_time); | 488 write_simple("TIMESENT", c_time); |
489 } | 489 } |
490 if (item->email->arrival_date) { | 490 if (item->email->arrival_date) { |
491 time_t t = pst_fileTimeToUnixTime(item->email->arrival_date, NULL); | 491 time_t t = pst_fileTimeToUnixTime(item->email->arrival_date); |
492 char c_time[C_TIME_SIZE]; | 492 char c_time[C_TIME_SIZE]; |
493 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); | 493 strftime(c_time, C_TIME_SIZE, "%F", gmtime(&t)); |
494 write_simple("DATERCVD", c_time); | 494 write_simple("DATERCVD", c_time); |
495 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); | 495 strftime(c_time, C_TIME_SIZE, "%T+0000", gmtime(&t)); |
496 write_simple("TIMERCVD", c_time); | 496 write_simple("TIMERCVD", c_time); |
538 snprintf(line, sizeof(line), "Cc: %s\n", item->email->cc_address.str); | 538 snprintf(line, sizeof(line), "Cc: %s\n", item->email->cc_address.str); |
539 print_pdf(line); | 539 print_pdf(line); |
540 } | 540 } |
541 | 541 |
542 if (item->email->sent_date) { | 542 if (item->email->sent_date) { |
543 time_t em_time = pst_fileTimeToUnixTime(item->email->sent_date, 0); | 543 time_t em_time = pst_fileTimeToUnixTime(item->email->sent_date); |
544 char c_time[C_TIME_SIZE]; | 544 char c_time[C_TIME_SIZE]; |
545 strftime(c_time, C_TIME_SIZE, "%a, %d %b %Y %H:%M:%S %z", gmtime(&em_time)); | 545 strftime(c_time, C_TIME_SIZE, "%a, %d %b %Y %H:%M:%S %z", gmtime(&em_time)); |
546 snprintf(line, sizeof(line), "Date: %s\n", c_time); | 546 snprintf(line, sizeof(line), "Date: %s\n", c_time); |
547 print_pdf(line); | 547 print_pdf(line); |
548 } | 548 } |