|
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 | 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 () |
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_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, char **extra_mime_headers) |
void | write_vcard (FILE *f_output, pst_item *item, pst_item_contact *contact, char comment[]) |
void | write_journal (FILE *f_output, pst_item *item) |
void | write_appointment (FILE *f_output, pst_item *item, int event_open) |
void | create_enter_dir (struct file_ll *f, pst_item *item) |
void | close_enter_dir (struct file_ll *f) |
int | grim_reaper (int waitall) |
Variables |
const char * | prog_name |
char * | output_dir = "." |
char * | kmail_chdir = NULL |
int | mode = 0 |
int | mode_MH = 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 | save_rtf_body = 1 |
pst_file | pstfile |
regex_t | meta_charset_pattern |
int | number_processors = 1 |
int | max_children = 0 |
int | max_child_specified = 0 |
int | active_children |
pid_t * | child_processes |
int | shared_memory_id |
sem_t * | global_children = NULL |
sem_t * | output_mutex = NULL |