'LibPst'
|
Go to the source code of this file.
Data Structures | |
struct | file_ll |
Macros | |
#define | OUTPUT_TEMPLATE "%s.%s" |
#define | OUTPUT_KMAIL_DIR_TEMPLATE ".%s.directory" |
#define | KMAIL_INDEX "../.%s.index" |
#define | SEP_MAIL_FILE_TEMPLATE "%i%s" |
#define | C_TIME_SIZE 500 |
#define | MODE_NORMAL 0 |
#define | MODE_KMAIL 1 |
#define | MODE_RECURSE 2 |
#define | MODE_SEPARATE 3 |
#define | OUTPUT_NORMAL 0 |
#define | OUTPUT_QUIET 1 |
#define | MIME_TYPE_DEFAULT "application/octet-stream" |
#define | RFC822 "message/rfc822" |
#define | CMODE_VCARD 0 |
#define | CMODE_LIST 1 |
#define | DMODE_EXCLUDE 0 |
#define | DMODE_INCLUDE 1 |
#define | OTMODE_EMAIL 1 |
#define | OTMODE_APPOINTMENT 2 |
#define | OTMODE_JOURNAL 4 |
#define | OTMODE_CONTACT 8 |
#define | RTF_ATTACH_NAME "rtf-body.rtf" |
#define | RTF_ATTACH_TYPE "application/rtf" |
Functions | |
int | grim_reaper () |
pid_t | try_fork (char *folder) |
void | process (pst_item *outeritem, pst_desc_tree *d_ptr) |
void | write_email_body (FILE *f, char *body) |
void | removeCR (char *c) |
void | usage () |
void | version () |
void | mk_kmail_dir (char *fname) |
int | close_kmail_dir () |
void | mk_recurse_dir (char *dir) |
int | close_recurse_dir () |
void | mk_separate_dir (char *dir) |
int | close_separate_dir () |
void | mk_separate_file (struct file_ll *f, int32_t t, char *extension, int openit) |
void | close_separate_file (struct file_ll *f) |
char * | my_stristr (char *haystack, char *needle) |
void | check_filename (char *fname) |
int | acceptable_ext (pst_item_attach *attach) |
check if the file name extension is acceptable. More... | |
void | write_separate_attachment (char f_name[], pst_item_attach *attach, int attach_num, pst_file *pst) |
void | write_embedded_message (FILE *f_output, pst_item_attach *attach, char *boundary, pst_file *pf, int save_rtf, char **extra_mime_headers) |
void | write_inline_attachment (FILE *f_output, pst_item_attach *attach, char *boundary, pst_file *pst) |
int | valid_headers (char *header) |
void | header_has_field (char *header, char *field, int *flag) |
void | header_get_subfield (char *field, const char *subfield, char *body_subfield, size_t size_subfield) |
char * | header_get_field (char *header, char *field) |
char * | header_end_field (char *field) |
void | header_strip_field (char *header, char *field) |
int | test_base64 (char *body, size_t len) |
void | find_html_charset (char *html, char *charset, size_t charsetlen) |
void | find_rfc822_headers (char **extra_mime_headers) |
void | write_body_part (FILE *f_output, pst_string *body, char *mime, char *charset, char *boundary, pst_file *pst) |
void | write_schedule_part_data (FILE *f_output, pst_item *item, const char *sender, const char *method) |
void | write_schedule_part (FILE *f_output, pst_item *item, const char *sender, const char *boundary) |
void | write_normal_email (FILE *f_output, char f_name[], pst_item *item, int mode, int mode_MH, pst_file *pst, int save_rtf, int embedding, char **extra_mime_headers) |
void | write_vcard (FILE *f_output, pst_item *item, pst_item_contact *contact, char comment[]) |
int | write_extra_categories (FILE *f_output, pst_item *item) |
write extra vcard or vcalendar categories from the extra keywords fields More... | |
void | write_journal (FILE *f_output, pst_item *item) |
void | write_appointment (FILE *f_output, pst_item *item) |
void | create_enter_dir (struct file_ll *f, pst_item *item) |
void | close_enter_dir (struct file_ll *f) |
char * | quote_string (char *inp) |
Backslash-escape quotes and backslashes in the given string. More... | |
int | grim_reaper (int waitall) |
int | main (int argc, char *const *argv) |
char * | item_type_to_name (int32_t item_type) |
int32_t | reduced_item_type (int32_t item_type) |
char * | rfc2231_string (char *inp) |
Convert inp to rfc2231 encoding of string. More... | |
int | header_match (char *header, char *field) |
Variables | |
const char * | prog_name |
char * | output_dir = "." |
int | mode = 0 |
int | mode_MH = 0 |
int | mode_EX = 0 |
int | mode_MSG = 0 |
int | mode_thunder = 0 |
int | output_mode = 0 |
int | contact_mode = 0 |
int | deleted_mode = 0 |
int | output_type_mode = 0xff |
int | contact_mode_specified = 0 |
int | overwrite = 0 |
int | prefer_utf8 = 0 |
int | save_rtf_body = 1 |
int | file_name_len = 10 |
pst_file | pstfile |
regex_t | meta_charset_pattern |
char * | default_charset = NULL |
char * | acceptable_extensions = NULL |
int | number_processors = 1 |
int | max_children = 0 |
int | max_child_specified = 0 |
int | active_children |
pid_t * | child_processes |
#define C_TIME_SIZE 500 |
Definition at line 18 of file readpst.c.
Referenced by write_normal_email().
#define CMODE_VCARD 0 |
#define DMODE_INCLUDE 1 |
#define KMAIL_INDEX "../.%s.index" |
Definition at line 14 of file readpst.c.
Referenced by mk_kmail_dir().
#define MIME_TYPE_DEFAULT "application/octet-stream" |
Definition at line 99 of file readpst.c.
Referenced by write_inline_attachment().
#define MODE_KMAIL 1 |
Definition at line 80 of file readpst.c.
Referenced by close_enter_dir(), create_enter_dir(), and main().
#define MODE_NORMAL 0 |
Definition at line 76 of file readpst.c.
Referenced by write_embedded_message().
#define MODE_RECURSE 2 |
Definition at line 84 of file readpst.c.
Referenced by close_enter_dir(), create_enter_dir(), and main().
#define MODE_SEPARATE 3 |
Definition at line 89 of file readpst.c.
Referenced by close_enter_dir(), create_enter_dir(), main(), process(), write_email_body(), and write_normal_email().
#define OTMODE_APPOINTMENT 2 |
#define OTMODE_CONTACT 8 |
#define OTMODE_EMAIL 1 |
#define OTMODE_JOURNAL 4 |
#define OUTPUT_KMAIL_DIR_TEMPLATE ".%s.directory" |
Definition at line 13 of file readpst.c.
Referenced by mk_kmail_dir().
#define OUTPUT_QUIET 1 |
Definition at line 96 of file readpst.c.
Referenced by close_enter_dir(), main(), and process().
#define OUTPUT_TEMPLATE "%s.%s" |
Definition at line 12 of file readpst.c.
Referenced by create_enter_dir().
#define RFC822 "message/rfc822" |
Definition at line 100 of file readpst.c.
Referenced by find_rfc822_headers(), and write_normal_email().
#define RTF_ATTACH_NAME "rtf-body.rtf" |
Definition at line 118 of file readpst.c.
Referenced by write_normal_email().
#define RTF_ATTACH_TYPE "application/rtf" |
Definition at line 120 of file readpst.c.
Referenced by write_normal_email().
#define SEP_MAIL_FILE_TEMPLATE "%i%s" |
Definition at line 15 of file readpst.c.
Referenced by mk_separate_dir(), and mk_separate_file().
int acceptable_ext | ( | pst_item_attach * | attach | ) |
check if the file name extension is acceptable.
If not, the attachment will be discarded
attach | pst attachment object |
Definition at line 1035 of file readpst.c.
References acceptable_extensions, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, pst_item_attach::filename1, pst_item_attach::filename2, pst_stricmp(), and pst_string::str.
Referenced by write_normal_email().
void check_filename | ( | char * | fname | ) |
Definition at line 1014 of file readpst.c.
References DEBUG_ENT, and DEBUG_RET.
Referenced by create_enter_dir(), mk_kmail_dir(), mk_recurse_dir(), mk_separate_dir(), mk_separate_file(), and write_separate_attachment().
void close_enter_dir | ( | struct file_ll * | f | ) |
Definition at line 2329 of file readpst.c.
References close_kmail_dir(), close_recurse_dir(), close_separate_dir(), DEBUG_INFO, DEBUG_WARN, file_ll::dname, file_ll::item_count, mode, MODE_KMAIL, MODE_RECURSE, MODE_SEPARATE, mode_thunder, file_ll::name, file_ll::output, output_mode, OUTPUT_QUIET, pst_debug_lock(), pst_debug_unlock(), PST_TYPE_MAX, file_ll::skip_count, and file_ll::stored_count.
Referenced by process().
int close_kmail_dir | ( | ) |
int close_recurse_dir | ( | ) |
int close_separate_dir | ( | ) |
void close_separate_file | ( | struct file_ll * | f | ) |
Definition at line 970 of file readpst.c.
References DEBUG_ENT, DEBUG_RET, DEBUG_WARN, file_ll::name, file_ll::output, and PST_TYPE_MAX.
Referenced by process().
Definition at line 2238 of file readpst.c.
References check_filename(), DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DIE, file_ll::dname, pst_item::file_as, file_name_len, pst_item::folder, pst_item_folder::item_count, item_type_to_name(), mk_kmail_dir(), mk_recurse_dir(), mk_separate_dir(), mode, MODE_KMAIL, MODE_RECURSE, MODE_SEPARATE, mode_thunder, file_ll::name, file_ll::output, OUTPUT_TEMPLATE, overwrite, pst_convert_utf8(), pst_malloc(), PST_TYPE_MAX, reduced_item_type(), file_ll::stored_count, pst_string::str, and pst_item::type.
Referenced by process().
void find_html_charset | ( | char * | html, |
char * | charset, | ||
size_t | charsetlen | ||
) |
Definition at line 1416 of file readpst.c.
References DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_INFO, DEBUG_RET, and meta_charset_pattern.
Referenced by write_normal_email().
void find_rfc822_headers | ( | char ** | extra_mime_headers | ) |
Definition at line 1445 of file readpst.c.
References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, header_get_field(), and RFC822.
Referenced by write_normal_email().
int grim_reaper | ( | ) |
Referenced by main(), process(), and try_fork().
int grim_reaper | ( | int | waitall | ) |
Definition at line 155 of file readpst.c.
References active_children, child_processes, and DEBUG_INFO.
char * header_end_field | ( | char * | field | ) |
Definition at line 1365 of file readpst.c.
Referenced by header_get_subfield(), and header_strip_field().
char * header_get_field | ( | char * | header, |
char * | field | ||
) |
Definition at line 1355 of file readpst.c.
References my_stristr().
Referenced by find_rfc822_headers(), header_strip_field(), and write_normal_email().
void header_get_subfield | ( | char * | field, |
const char * | subfield, | ||
char * | body_subfield, | ||
size_t | size_subfield | ||
) |
Definition at line 1324 of file readpst.c.
References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, header_end_field(), and my_stristr().
Referenced by write_normal_email().
void header_has_field | ( | char * | header, |
char * | field, | ||
int * | flag | ||
) |
Definition at line 1313 of file readpst.c.
References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, and my_stristr().
Referenced by write_normal_email().
int header_match | ( | char * | header, |
char * | field | ||
) |
void header_strip_field | ( | char * | header, |
char * | field | ||
) |
Definition at line 1375 of file readpst.c.
References header_end_field(), and header_get_field().
Referenced by write_normal_email().
char* item_type_to_name | ( | int32_t | item_type | ) |
Definition at line 807 of file readpst.c.
References file_ll::name, PST_TYPE_APPOINTMENT, PST_TYPE_CONTACT, PST_TYPE_JOURNAL, PST_TYPE_NOTE, PST_TYPE_OTHER, PST_TYPE_REPORT, PST_TYPE_STICKYNOTE, and PST_TYPE_TASK.
Referenced by create_enter_dir(), and mk_separate_file().
int main | ( | int | argc, |
char *const * | argv | ||
) |
Definition at line 412 of file readpst.c.
References acceptable_extensions, active_children, pst_desc_tree::child, child_processes, CMODE_LIST, CMODE_VCARD, contact_mode, contact_mode_specified, pst_file::d_head, DEBUG_ENT, DEBUG_INFO, DEBUG_INIT, DEBUG_RET, default_charset, deleted_mode, DIE, DMODE_INCLUDE, pst_item::file_as, file_name_len, getopt(), grim_reaper(), pst_string::is_utf8, max_child_specified, max_children, pst_item::message_store, meta_charset_pattern, mode, mode_EX, MODE_KMAIL, mode_MH, mode_MSG, MODE_RECURSE, MODE_SEPARATE, mode_thunder, number_processors, optarg, optind, OTMODE_APPOINTMENT, OTMODE_CONTACT, OTMODE_EMAIL, OTMODE_JOURNAL, output_dir, output_mode, OUTPUT_QUIET, output_type_mode, overwrite, prefer_utf8, process(), prog_name, pst_close(), pst_debug_setlevel(), pst_freeItem(), pst_getTopOfFolders(), pst_load_extended_attributes(), pst_load_index(), pst_malloc(), pst_open(), pst_parse_item(), pstfile, RET_DERROR, save_rtf_body, pst_string::str, usage(), and version().
void mk_kmail_dir | ( | char * | fname | ) |
Definition at line 764 of file readpst.c.
References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_RET, DIE, KMAIL_INDEX, OUTPUT_KMAIL_DIR_TEMPLATE, and pst_malloc().
Referenced by create_enter_dir().
void mk_recurse_dir | ( | char * | dir | ) |
Definition at line 854 of file readpst.c.
References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_RET, and DIE.
Referenced by create_enter_dir().
void mk_separate_dir | ( | char * | dir | ) |
Definition at line 884 of file readpst.c.
References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DEBUG_WARN, DIE, overwrite, and SEP_MAIL_FILE_TEMPLATE.
Referenced by create_enter_dir().
void mk_separate_file | ( | struct file_ll * | f, |
int32_t | t, | ||
char * | extension, | ||
int | openit | ||
) |
Definition at line 953 of file readpst.c.
References check_filename(), DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DIE, file_ll::item_count, item_type_to_name(), file_ll::name, file_ll::output, and SEP_MAIL_FILE_TEMPLATE.
Referenced by process().
char * my_stristr | ( | char * | haystack, |
char * | needle | ||
) |
Definition at line 989 of file readpst.c.
Referenced by header_get_field(), header_get_subfield(), and header_has_field().
void process | ( | pst_item * | outeritem, |
pst_desc_tree * | d_ptr | ||
) |
Definition at line 240 of file readpst.c.
References pst_desc_tree::child, close_enter_dir(), close_separate_file(), CMODE_VCARD, contact_mode, create_enter_dir(), pst_desc_tree::d_id, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DEBUG_WARN, deleted_mode, pst_desc_tree::desc, DMODE_INCLUDE, grim_reaper(), pst_index_ll::i_id, file_ll::item_count, mk_separate_file(), mode, mode_EX, mode_MH, mode_MSG, MODE_SEPARATE, file_ll::name, pst_desc_tree::next, OTMODE_APPOINTMENT, OTMODE_CONTACT, OTMODE_EMAIL, OTMODE_JOURNAL, file_ll::output, output_mode, OUTPUT_QUIET, output_type_mode, pst_convert_utf8(), pst_convert_utf8_null(), pst_debug_lock(), pst_debug_unlock(), pst_freeItem(), pst_parse_item(), PST_TYPE_APPOINTMENT, PST_TYPE_CONTACT, PST_TYPE_JOURNAL, PST_TYPE_NOTE, PST_TYPE_REPORT, PST_TYPE_SCHEDULE, pstfile, save_rtf_body, file_ll::skip_count, try_fork(), write_journal(), write_msg_email(), write_normal_email(), write_schedule_part_data(), and write_vcard().
Referenced by main().
char * quote_string | ( | char * | inp | ) |
Backslash-escape quotes and backslashes in the given string.
Definition at line 1158 of file readpst.c.
Referenced by write_inline_attachment().
int32_t reduced_item_type | ( | int32_t | item_type | ) |
Definition at line 832 of file readpst.c.
References PST_TYPE_APPOINTMENT, PST_TYPE_CONTACT, PST_TYPE_JOURNAL, PST_TYPE_NOTE, PST_TYPE_OTHER, PST_TYPE_REPORT, PST_TYPE_STICKYNOTE, and PST_TYPE_TASK.
Referenced by create_enter_dir().
void removeCR | ( | char * | c | ) |
Definition at line 702 of file readpst.c.
References DEBUG_ENT, and DEBUG_RET.
Referenced by write_body_part(), and write_normal_email().
char* rfc2231_string | ( | char * | inp | ) |
Convert inp to rfc2231 encoding of string.
inp | pointer to the string of interest |
Definition at line 1187 of file readpst.c.
References pst_malloc().
Referenced by write_inline_attachment().
int test_base64 | ( | char * | body, |
size_t | len | ||
) |
Definition at line 1397 of file readpst.c.
References DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_INFO, and DEBUG_RET.
Referenced by write_body_part().
pid_t try_fork | ( | char * | folder | ) |
Definition at line 203 of file readpst.c.
References active_children, child_processes, grim_reaper(), max_children, pst_reopen(), and pstfile.
Referenced by process().
void usage | ( | void | ) |
int valid_headers | ( | char * | header | ) |
Definition at line 1284 of file readpst.c.
References DEBUG_INFO, and header_match().
Referenced by write_normal_email().
void version | ( | void | ) |
void write_appointment | ( | FILE * | f_output, |
pst_item * | item | ||
) |
Definition at line 2118 of file readpst.c.
References pst_item_appointment::alarm, pst_item_appointment::alarm_minutes, pst_item::appointment, pst_item::block_id, pst_item::body, pst_recurrence::bydaymask, pst_recurrence::count, pst_item::create_date, pst_recurrence::dayofmonth, pst_item_appointment::end, pst_recurrence::interval, pst_item_appointment::is_recurring, pst_item_appointment::label, pst_item_appointment::location, pst_item::modify_date, pst_recurrence::monthofyear, pst_recurrence::position, PST_APP_LABEL_ANNIVERSARY, PST_APP_LABEL_BIRTHDAY, PST_APP_LABEL_BUSINESS, PST_APP_LABEL_IMPORTANT, PST_APP_LABEL_MUST_ATTEND, PST_APP_LABEL_NEEDS_PREP, PST_APP_LABEL_NONE, PST_APP_LABEL_PERSONAL, PST_APP_LABEL_PHONE_CALL, PST_APP_LABEL_TRAVEL_REQ, PST_APP_LABEL_VACATION, pst_convert_recurrence(), pst_convert_utf8_null(), pst_free_recurrence(), PST_FREEBUSY_BUSY, PST_FREEBUSY_FREE, PST_FREEBUSY_OUT_OF_OFFICE, PST_FREEBUSY_TENTATIVE, pst_rfc2426_escape(), pst_rfc2445_datetime_format(), pst_rfc2445_datetime_format_now(), pst_item_appointment::showas, pst_item_appointment::start, pst_string::str, pst_item::subject, pst_recurrence::type, and write_extra_categories().
Referenced by write_schedule_part_data().
void write_body_part | ( | FILE * | f_output, |
pst_string * | body, | ||
char * | mime, | ||
char * | charset, | ||
char * | boundary, | ||
pst_file * | pst | ||
) |
Definition at line 1479 of file readpst.c.
References pst_varbuf::b, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, pst_varbuf::dlen, pst_string::is_utf8, prefer_utf8, pst_base64_encode(), pst_vb_utf8to8bit(), pst_vballoc(), pst_vbgrow(), removeCR(), pst_string::str, test_base64(), and write_email_body().
Referenced by write_normal_email().
void write_email_body | ( | FILE * | f, |
char * | body | ||
) |
Definition at line 682 of file readpst.c.
References DEBUG_ENT, DEBUG_RET, mode, MODE_SEPARATE, and pst_fwrite().
Referenced by write_body_part().
void write_embedded_message | ( | FILE * | f_output, |
pst_item_attach * | attach, | ||
char * | boundary, | ||
pst_file * | pf, | ||
int | save_rtf, | ||
char ** | extra_mime_headers | ||
) |
Definition at line 1114 of file readpst.c.
References pst_desc_tree::assoc_tree, pst_desc_tree::child, pst_desc_tree::child_tail, pst_desc_tree::d_id, DEBUG_ENT, DEBUG_RET, DEBUG_WARN, pst_desc_tree::desc, pst_item::email, pst_item_attach::i_id, pst_item_attach::id2_head, pst_item_attach::mimetype, MODE_NORMAL, pst_desc_tree::next, pst_desc_tree::no_child, pst_desc_tree::parent, pst_desc_tree::parent_d_id, pst_desc_tree::prev, pst_freeItem(), pst_getID(), pst_parse_item(), pst_string::str, pst_item::type, and write_normal_email().
Referenced by write_normal_email().
int write_extra_categories | ( | FILE * | f_output, |
pst_item * | item | ||
) |
write extra vcard or vcalendar categories from the extra keywords fields
f_output | open file pointer |
item | pst item containing the keywords |
Definition at line 2069 of file readpst.c.
References pst_item::extra_fields, pst_item_extra_field::field_name, pst_item_extra_field::next, pst_rfc2426_escape(), and pst_item_extra_field::value.
Referenced by write_appointment(), and write_vcard().
void write_inline_attachment | ( | FILE * | f_output, |
pst_item_attach * | attach, | ||
char * | boundary, | ||
pst_file * | pst | ||
) |
Definition at line 1217 of file readpst.c.
References pst_item_attach::content_id, pst_binary::data, pst_item_attach::data, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DEBUG_WARN, pst_item_attach::filename1, pst_item_attach::filename2, pst_item_attach::i_id, MIME_TYPE_DEFAULT, pst_item_attach::mimetype, pst_attach_to_file_base64(), pst_getID(), quote_string(), rfc2231_string(), pst_binary::size, and pst_string::str.
Referenced by write_normal_email().
void write_journal | ( | FILE * | f_output, |
pst_item * | item | ||
) |
Definition at line 2090 of file readpst.c.
References pst_item::body, pst_item::create_date, pst_item::journal, pst_item::modify_date, pst_convert_utf8_null(), pst_rfc2426_escape(), pst_rfc2445_datetime_format(), pst_rfc2445_datetime_format_now(), pst_item_journal::start, pst_string::str, and pst_item::subject.
Referenced by process().
void write_normal_email | ( | FILE * | f_output, |
char | f_name[], | ||
pst_item * | item, | ||
int | mode, | ||
int | mode_MH, | ||
pst_file * | pst, | ||
int | save_rtf, | ||
int | embedding, | ||
char ** | extra_mime_headers | ||
) |
Definition at line 1575 of file readpst.c.
References acceptable_ext(), pst_item::attach, pst_item_email::bcc_address, pst_item::body, C_TIME_SIZE, pst_item_email::cc_address, pst_binary::data, pst_item_attach::data, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, pst_item::email, pst_item_email::encrypted_body, pst_item_email::encrypted_htmlbody, pst_item_attach::filename1, pst_item_attach::filename2, find_html_charset(), find_rfc822_headers(), pst_item::flags, pst_item_email::header, header_get_field(), header_get_subfield(), header_has_field(), header_strip_field(), pst_item_email::htmlbody, pst_item_attach::i_id, pst_string::is_utf8, pst_item_email::messageid, pst_item_attach::method, pst_item_attach::mimetype, mode, mode_MH, MODE_SEPARATE, pst_item_attach::next, pst_item_email::outlook_sender_name, PST_ATTACH_EMBEDDED, pst_convert_utf8(), pst_convert_utf8_null(), pst_default_charset(), pst_fileTimeToUnixTime(), PST_FLAG_READ, pst_lzfu_decompress(), pst_malloc(), pst_rfc2047(), PST_TYPE_REPORT, PST_TYPE_SCHEDULE, removeCR(), pst_item_email::report_text, RFC822, RTF_ATTACH_NAME, RTF_ATTACH_TYPE, pst_item_email::rtf_compressed, pst_item_email::sender_address, pst_item_email::sent_date, pst_item_email::sentto_address, pst_binary::size, pst_string::str, pst_item::subject, pst_item::type, valid_headers(), write_body_part(), write_embedded_message(), write_inline_attachment(), write_schedule_part(), and write_separate_attachment().
Referenced by process(), and write_embedded_message().
void write_schedule_part | ( | FILE * | f_output, |
pst_item * | item, | ||
const char * | sender, | ||
const char * | boundary | ||
) |
Definition at line 1552 of file readpst.c.
References pst_item::appointment, and write_schedule_part_data().
Referenced by write_normal_email().
void write_schedule_part_data | ( | FILE * | f_output, |
pst_item * | item, | ||
const char * | sender, | ||
const char * | method | ||
) |
Definition at line 1533 of file readpst.c.
References pst_item::email, pst_item_email::outlook_sender_name, pst_string::str, VERSION, and write_appointment().
Referenced by process(), and write_schedule_part().
void write_separate_attachment | ( | char | f_name[], |
pst_item_attach * | attach, | ||
int | attach_num, | ||
pst_file * | pst | ||
) |
Definition at line 1060 of file readpst.c.
References check_filename(), pst_binary::data, pst_item_attach::data, DEBUG_ENT, DEBUG_INFO, DEBUG_RET, DEBUG_WARN, DIE, pst_item_attach::filename1, pst_item_attach::filename2, pst_item_attach::i_id, pst_attach_to_file(), pst_getID(), pst_malloc(), pst_binary::size, and pst_string::str.
Referenced by write_normal_email().
void write_vcard | ( | FILE * | f_output, |
pst_item * | item, | ||
pst_item_contact * | contact, | ||
char | comment[] | ||
) |
Definition at line 1904 of file readpst.c.
References pst_item_contact::address1, pst_item_contact::address2, pst_item_contact::address3, pst_item_contact::assistant_name, pst_item_contact::assistant_phone, pst_item_contact::birthday, pst_item::body, pst_item_contact::business_address, pst_item_contact::business_city, pst_item_contact::business_country, pst_item_contact::business_fax, pst_item_contact::business_phone, pst_item_contact::business_phone2, pst_item_contact::business_po_box, pst_item_contact::business_postal_code, pst_item_contact::business_state, pst_item_contact::business_street, pst_item_contact::car_phone, pst_item_contact::company_name, DEBUG_ENT, DEBUG_RET, pst_item_contact::display_name_prefix, pst_item_contact::first_name, pst_item_contact::fullname, pst_item_contact::home_address, pst_item_contact::home_city, pst_item_contact::home_country, pst_item_contact::home_fax, pst_item_contact::home_phone, pst_item_contact::home_phone2, pst_item_contact::home_po_box, pst_item_contact::home_postal_code, pst_item_contact::home_state, pst_item_contact::home_street, pst_item_contact::isdn_phone, pst_item_contact::job_title, pst_item_contact::middle_name, pst_item_contact::mobile_phone, pst_item_contact::nickname, pst_item_contact::other_address, pst_item_contact::other_city, pst_item_contact::other_country, pst_item_contact::other_phone, pst_item_contact::other_po_box, pst_item_contact::other_postal_code, pst_item_contact::other_state, pst_item_contact::other_street, pst_item_contact::pager_phone, pst_item_contact::primary_fax, pst_item_contact::primary_phone, pst_item_contact::profession, pst_convert_utf8_null(), pst_rfc2425_datetime_format(), pst_rfc2426_escape(), pst_item_contact::radio_phone, pst_string::str, pst_item_contact::suffix, pst_item_contact::surname, pst_item_contact::telex, and write_extra_categories().
Referenced by process().
char* acceptable_extensions = NULL |
Definition at line 140 of file readpst.c.
Referenced by acceptable_ext(), and main().
int active_children |
Definition at line 145 of file readpst.c.
Referenced by grim_reaper(), main(), and try_fork().
pid_t* child_processes |
Definition at line 146 of file readpst.c.
Referenced by grim_reaper(), main(), and try_fork().
int file_name_len = 10 |
Definition at line 136 of file readpst.c.
Referenced by create_enter_dir(), and main().
int max_children = 0 |
Definition at line 143 of file readpst.c.
Referenced by main(), and try_fork().
regex_t meta_charset_pattern |
Definition at line 138 of file readpst.c.
Referenced by find_html_charset(), and main().
int mode = 0 |
Definition at line 123 of file readpst.c.
Referenced by close_enter_dir(), create_enter_dir(), main(), process(), write_email_body(), and write_normal_email().
int mode_MH = 0 |
Definition at line 124 of file readpst.c.
Referenced by main(), process(), and write_normal_email().
int mode_thunder = 0 |
Definition at line 127 of file readpst.c.
Referenced by close_enter_dir(), create_enter_dir(), and main().
int output_mode = 0 |
Definition at line 128 of file readpst.c.
Referenced by close_enter_dir(), main(), and process().
int output_type_mode = 0xff |
int overwrite = 0 |
Definition at line 133 of file readpst.c.
Referenced by create_enter_dir(), main(), and mk_separate_dir().
int prefer_utf8 = 0 |
Definition at line 134 of file readpst.c.
Referenced by main(), and write_body_part().
pst_file pstfile |
Definition at line 137 of file readpst.c.
Referenced by main(), process(), and try_fork().