#include "define.h"
#include "lzfu.h"
Include dependency graph for readpst.c:
Go to the source code of this file.
Data Structures | |
struct | file_ll |
Defines | |
#define | OUTPUT_TEMPLATE "%s" |
#define | OUTPUT_KMAIL_DIR_TEMPLATE ".%s.directory" |
#define | KMAIL_INDEX ".%s.index" |
#define | SEP_MAIL_FILE_TEMPLATE "%i" |
#define | C_TIME_SIZE 500 |
#define | MODE_NORMAL 0 |
#define | MODE_KMAIL 1 |
#define | MODE_RECURSE 2 |
#define | MODE_SEPARATE 3 |
#define | MODE_DECSPEW 4 |
#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 | RTF_ATTACH_NAME "rtf-body.rtf" |
#define | RTF_ATTACH_TYPE "application/rtf" |
Functions | |
void | process (pst_item *outeritem, pst_desc_ll *d_ptr) |
void | write_email_body (FILE *f, char *body) |
void | removeCR (char *c) |
void | usage () |
void | version () |
char * | mk_kmail_dir (char *fname) |
int | close_kmail_dir () |
char * | mk_recurse_dir (char *dir, int32_t folder_type) |
int | close_recurse_dir () |
char * | mk_separate_dir (char *dir) |
int | close_separate_dir () |
int | mk_separate_file (struct file_ll *f) |
char * | my_stristr (char *haystack, char *needle) |
void | check_filename (char *fname) |
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, char **extra_mime_headers) |
void | write_inline_attachment (FILE *f_output, pst_item_attach *attach, char *boundary, pst_file *pst) |
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) |
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_normal_email (FILE *f_output, char f_name[], pst_item *item, int mode, int mode_MH, pst_file *pst, int save_rtf, char **extra_mime_headers) |
void | write_vcard (FILE *f_output, pst_item *item, pst_item_contact *contact, char comment[]) |
void | write_appointment (FILE *f_output, pst_item *item, pst_item_appointment *appointment, FILETIME *create_date, FILETIME *modify_date) |
void | create_enter_dir (struct file_ll *f, pst_item *item) |
void | close_enter_dir (struct file_ll *f) |
int | main (int argc, char *const *argv) |
Variables | |
const char * | prog_name |
char * | output_dir = "." |
char * | kmail_chdir = NULL |
int | mode = 0 |
int | mode_MH = 0 |
int | output_mode = 0 |
int | contact_mode = 0 |
int | deleted_mode = 0 |
int | contact_mode_specified = 0 |
int | overwrite = 0 |
int | save_rtf_body = 1 |
pst_file | pstfile |
regex_t | meta_charset_pattern |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 13 of file readpst.c. Referenced by mk_kmail_dir(). |
|
Definition at line 94 of file readpst.c. Referenced by write_inline_attachment(). |
|
|
|
|
|
Definition at line 68 of file readpst.c. Referenced by write_embedded_message(). |
|
|
|
Definition at line 81 of file readpst.c. Referenced by write_normal_email(). |
|
Definition at line 12 of file readpst.c. Referenced by mk_kmail_dir(). |
|
|
|
|
|
Definition at line 11 of file readpst.c. Referenced by mk_kmail_dir(). |
|
Definition at line 95 of file readpst.c. Referenced by find_rfc822_headers(), and write_normal_email(). |
|
Definition at line 107 of file readpst.c. Referenced by write_normal_email(). |
|
Definition at line 109 of file readpst.c. Referenced by write_normal_email(). |
|
Definition at line 14 of file readpst.c. Referenced by mk_separate_dir(), and mk_separate_file(). |
|
Referenced by mk_kmail_dir(), mk_recurse_dir(), mk_separate_dir(), mk_separate_file(), and write_separate_attachment(). |
|
Definition at line 41 of file lspst.c. References file_ll::dname. Referenced by process(). |
|
Definition at line 543 of file readpst.c. References DEBUG_ENT, DEBUG_RET, DIE, and kmail_chdir. |
|
|
|
|
|
Definition at line 29 of file lspst.c. References file_ll::dname, pst_item::file_as, pst_item::folder, pst_item_folder::item_count, file_ll::item_count, pst_convert_utf8(), file_ll::skip_count, file_ll::stored_count, pst_string::str, pst_item::type, file_ll::type, and xmalloc(). Referenced by process(). |
Here is the call graph for this function:
|
Definition at line 985 of file readpst.c. References DEBUG_EMAIL, DEBUG_ENT, DEBUG_HEXDUMPC, DEBUG_RET, and meta_charset_pattern. Referenced by write_normal_email(). |
|
Definition at line 1014 of file readpst.c. References DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, header_get_field(), and RFC822. Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 934 of file readpst.c. Referenced by header_get_subfield(), and header_strip_field(). |
|
Definition at line 924 of file readpst.c. References my_stristr(). Referenced by find_rfc822_headers(), header_strip_field(), and write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 893 of file readpst.c. References DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, header_end_field(), and my_stristr(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 882 of file readpst.c. References DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, and my_stristr(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 944 of file readpst.c. References header_end_field(), and header_get_field(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 504 of file readpst.c. References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_RET, DIE, kmail_chdir, KMAIL_INDEX, OUTPUT_KMAIL_DIR_TEMPLATE, and OUTPUT_TEMPLATE. |
Here is the call graph for this function:
|
Definition at line 564 of file readpst.c. References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_RET, DIE, 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. |
Here is the call graph for this function:
|
Definition at line 615 of file readpst.c. References check_filename(), D_MKDIR, DEBUG_ENT, DEBUG_MAIN, DEBUG_RET, DIE, overwrite, SEP_MAIL_FILE_TEMPLATE, and WARN. |
Here is the call graph for this function:
|
Definition at line 685 of file readpst.c. References check_filename(), DEBUG_ENT, DEBUG_MAIN, DEBUG_RET, DIE, file_ll::item_count, file_ll::name, file_ll::output, and SEP_MAIL_FILE_TEMPLATE. |
Here is the call graph for this function:
|
Definition at line 704 of file readpst.c. Referenced by header_get_field(), header_get_subfield(), and header_has_field(). |
|
Definition at line 47 of file lspst.c. References pst_desc_tree::child, close_enter_dir(), create_enter_dir(), pst_desc_tree::d_id, DEBUG_ENT, DEBUG_MAIN, DEBUG_RET, DEBUG_WARN, pst_desc_tree::desc, DIE, pst_index_tree::i_id, pst_desc_tree::next, pst_convert_utf8(), pst_desc_ll, pst_freeItem(), pst_parse_item(), pst_rfc2426_escape(), pst_rfc2445_datetime_format(), PST_TYPE_NOTE, pstfile, and file_ll::skip_count. Referenced by main(). |
Here is the call graph for this function:
|
Definition at line 449 of file readpst.c. References DEBUG_ENT, and DEBUG_RET. Referenced by write_body_part(), and write_normal_email(). |
|
Definition at line 966 of file readpst.c. References DEBUG_EMAIL, DEBUG_ENT, DEBUG_HEXDUMPC, and DEBUG_RET. Referenced by write_body_part(). |
|
|
|
|
|
Here is the call graph for this function:
|
Definition at line 1048 of file readpst.c. References varbuf::b, base64_encode(), DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, varbuf::dlen, pst_string::is_utf8, removeCR(), pst_string::str, test_base64(), vb_utf8to8bit(), vballoc(), vbgrow(), vbuf, and write_email_body(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Definition at line 431 of file readpst.c. References DEBUG_ENT, DEBUG_INFO, DEBUG_RET, and pst_fwrite(). Referenced by write_body_part(), and write_normal_email(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 829 of file readpst.c. References base64_encode(), pst_binary::data, pst_item_attach::data, DEBUG_EMAIL, DEBUG_ENT, 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_fwrite(), pst_getID(), pst_index_ll, pst_binary::size, and pst_string::str. Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 744 of file readpst.c. References check_filename(), pst_binary::data, pst_item_attach::data, DEBUG_EMAIL, DEBUG_ENT, DEBUG_RET, DEBUG_WARN, DIE, pst_item_attach::filename1, pst_item_attach::filename2, pst_item_attach::i_id, pst_attach_to_file(), pst_fwrite(), pst_getID(), pst_index_ll, pst_binary::size, pst_string::str, WARN, and xmalloc(). Referenced by write_normal_email(). |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 115 of file readpst.c. Referenced by main(). |
|
Definition at line 117 of file readpst.c. Referenced by main(). |
|
Definition at line 116 of file readpst.c. Referenced by main(). |
|
Definition at line 64 of file readpst.c. Referenced by close_kmail_dir(), and mk_kmail_dir(). |
|
Definition at line 121 of file readpst.c. Referenced by find_html_charset(), and main(). |
|
Definition at line 112 of file readpst.c. Referenced by main(), and write_normal_email(). |
|
Definition at line 113 of file readpst.c. Referenced by main(). |
|
Definition at line 63 of file readpst.c. Referenced by main(). |
|
Definition at line 114 of file readpst.c. Referenced by main(). |
|
Definition at line 118 of file readpst.c. Referenced by main(), and mk_separate_dir(). |
|
|
|
|
|
Definition at line 119 of file readpst.c. Referenced by main(). |