comparison src/libpst.h @ 47:5fb8d997feed

more fixes for 64 bit format
author carl
date Sun, 13 Jan 2008 12:55:59 -0800
parents b2a7f2e0926a
children f66078abed38
comparison
equal deleted inserted replaced
46:b2a7f2e0926a 47:5fb8d997feed
189 struct pst_desc_tree * child; 189 struct pst_desc_tree * child;
190 struct pst_desc_tree * child_tail; 190 struct pst_desc_tree * child_tail;
191 } pst_desc_ll; 191 } pst_desc_ll;
192 192
193 typedef struct pst_item_email_subject { 193 typedef struct pst_item_email_subject {
194 int32_t off1; 194 int off1;
195 int32_t off2; 195 int off2;
196 char *subj; 196 char *subj;
197 } pst_item_email_subject; 197 } pst_item_email_subject;
198 198
199 typedef struct pst_item_email { 199 typedef struct pst_item_email {
200 FILETIME *arrival_date; 200 FILETIME *arrival_date;
201 int32_t autoforward; // 1 = true, 0 = not set, -1 = false 201 int autoforward; // 1 = true, 0 = not set, -1 = false
202 char *body; 202 char *body;
203 char *cc_address; 203 char *cc_address;
204 char *common_name; 204 char *common_name;
205 int32_t conv_index; 205 int32_t conv_index;
206 int32_t conversion_prohib; 206 int conversion_prohib; // 1 = true, 0 = false
207 int32_t delete_after_submit; // 1 = true, 0 = false 207 int delete_after_submit; // 1 = true, 0 = false
208 int32_t delivery_report; // 1 = true, 0 = false 208 int delivery_report; // 1 = true, 0 = false
209 char *encrypted_body; 209 char *encrypted_body;
210 int32_t encrypted_body_size; 210 int32_t encrypted_body_size;
211 char *encrypted_htmlbody; 211 char *encrypted_htmlbody;
212 int32_t encrypted_htmlbody_size; 212 int32_t encrypted_htmlbody_size;
213 int32_t flag; 213 int32_t flag;
214 char *header; 214 char *header;
215 char *htmlbody; 215 char *htmlbody;
216 int32_t importance; 216 int32_t importance;
217 char *in_reply_to; 217 char *in_reply_to;
218 int32_t message_cc_me; // 1 = true, 0 = false 218 int message_cc_me; // 1 = true, 0 = false
219 int32_t message_recip_me; // 1 = true, 0 = false 219 int message_recip_me; // 1 = true, 0 = false
220 int32_t message_to_me; // 1 = true, 0 = false 220 int message_to_me; // 1 = true, 0 = false
221 char *messageid; 221 char *messageid;
222 int32_t orig_sensitivity; 222 int32_t orig_sensitivity;
223 char *outlook_recipient; 223 char *outlook_recipient;
224 char *outlook_recipient2; 224 char *outlook_recipient2;
225 char *outlook_sender; 225 char *outlook_sender;
226 char *outlook_sender_name; 226 char *outlook_sender_name;
227 char *outlook_sender2; 227 char *outlook_sender2;
228 int32_t priority; 228 int32_t priority;
229 char *proc_subject; 229 char *proc_subject;
230 int32_t read_receipt; 230 int read_receipt; // 1 = true, 0 = false
231 char *recip_access; 231 char *recip_access;
232 char *recip_address; 232 char *recip_address;
233 char *recip2_access; 233 char *recip2_access;
234 char *recip2_address; 234 char *recip2_address;
235 int32_t reply_requested; 235 int reply_requested; // 1 = true, 0 = false
236 char *reply_to; 236 char *reply_to;
237 char *return_path_address; 237 char *return_path_address;
238 int32_t rtf_body_char_count; 238 int32_t rtf_body_char_count;
239 int32_t rtf_body_crc; 239 int32_t rtf_body_crc;
240 char *rtf_body_tag; 240 char *rtf_body_tag;
241 char *rtf_compressed; 241 char *rtf_compressed;
242 uint32_t rtf_compressed_size; 242 uint32_t rtf_compressed_size;
243 int32_t rtf_in_sync; // 1 = true, 0 = doesn't exist, -1 = false 243 int rtf_in_sync; // 1 = true, 0 = doesn't exist, -1 = false
244 int32_t rtf_ws_prefix_count; 244 int32_t rtf_ws_prefix_count;
245 int32_t rtf_ws_trailing_count; 245 int32_t rtf_ws_trailing_count;
246 char *sender_access; 246 char *sender_access;
247 char *sender_address; 247 char *sender_address;
248 char *sender2_access; 248 char *sender2_access;
256 256
257 typedef struct pst_item_folder { 257 typedef struct pst_item_folder {
258 int32_t email_count; 258 int32_t email_count;
259 int32_t unseen_email_count; 259 int32_t unseen_email_count;
260 int32_t assoc_count; 260 int32_t assoc_count;
261 char subfolder; 261 int subfolder; // 1 = true, 0 = false
262 } pst_item_folder; 262 } pst_item_folder;
263 263
264 typedef struct pst_item_message_store { 264 typedef struct pst_item_message_store {
265 pst_entryid *deleted_items_folder; 265 pst_entryid *deleted_items_folder;
266 pst_entryid *search_root_folder; 266 pst_entryid *search_root_folder;
331 char *isdn_phone; 331 char *isdn_phone;
332 char *job_title; 332 char *job_title;
333 char *keyword; 333 char *keyword;
334 char *language; 334 char *language;
335 char *location; 335 char *location;
336 int32_t mail_permission; 336 int mail_permission; // 1 = true, 0 = false
337 char *manager_name; 337 char *manager_name;
338 char *middle_name; 338 char *middle_name;
339 char *mileage; 339 char *mileage;
340 char *mobile_phone; 340 char *mobile_phone;
341 char *nickname; 341 char *nickname;
354 char *pref_name; 354 char *pref_name;
355 char *primary_fax; 355 char *primary_fax;
356 char *primary_phone; 356 char *primary_phone;
357 char *profession; 357 char *profession;
358 char *radio_phone; 358 char *radio_phone;
359 int32_t rich_text; 359 int rich_text; // 1 = true, 0 = false
360 char *spouse_name; 360 char *spouse_name;
361 char *suffix; 361 char *suffix;
362 char *surname; 362 char *surname;
363 char *telex; 363 char *telex;
364 char *transmittable_display_name; 364 char *transmittable_display_name;
395 typedef struct pst_item_appointment { 395 typedef struct pst_item_appointment {
396 FILETIME *end; 396 FILETIME *end;
397 char *location; 397 char *location;
398 FILETIME *reminder; 398 FILETIME *reminder;
399 FILETIME *start; 399 FILETIME *start;
400 char *timezonestring; 400 char *timezonestring;
401 int32_t showas; 401 int32_t showas;
402 int32_t label; 402 int32_t label;
403 int32_t all_day; 403 int all_day; // 1 = true, 0 = false
404 } pst_item_appointment; 404 } pst_item_appointment;
405 405
406 typedef struct pst_item { 406 typedef struct pst_item {
407 struct pst_item_email *email; // data reffering to email 407 struct pst_item_email *email; // data reffering to email
408 struct pst_item_folder *folder; // data reffering to folder 408 struct pst_item_folder *folder; // data reffering to folder
410 struct pst_item_attach *attach; // linked list of attachments 410 struct pst_item_attach *attach; // linked list of attachments
411 struct pst_item_message_store *message_store; // data referring to the message store 411 struct pst_item_message_store *message_store; // data referring to the message store
412 struct pst_item_extra_field *extra_fields; // linked list of extra headers and such 412 struct pst_item_extra_field *extra_fields; // linked list of extra headers and such
413 struct pst_item_journal *journal; // data reffering to a journal entry 413 struct pst_item_journal *journal; // data reffering to a journal entry
414 struct pst_item_appointment *appointment; // data reffering to a calendar entry 414 struct pst_item_appointment *appointment; // data reffering to a calendar entry
415 int32_t type; 415 int type;
416 char *ascii_type; 416 char *ascii_type;
417 char *file_as; 417 char *file_as;
418 char *comment; 418 char *comment;
419 int32_t message_size; 419 int32_t message_size;
420 char *outlook_version; 420 char *outlook_version;
421 char *record_key; // probably 16 bytes long. 421 char *record_key; // probably 16 bytes long.
422 size_t record_key_size; 422 size_t record_key_size;
423 int32_t response_requested; 423 int response_requested; // 1 = true, 0 = false
424 FILETIME *create_date; 424 FILETIME *create_date;
425 FILETIME *modify_date; 425 FILETIME *modify_date;
426 int32_t private_member; 426 int private_member; // 1 = true, 0 = false
427 } pst_item; 427 } pst_item;
428 428
429 typedef struct pst_x_attrib_ll { 429 typedef struct pst_x_attrib_ll {
430 uint32_t type; 430 uint32_t type;
431 uint32_t mytype; 431 uint32_t mytype;
466 } pst_block_offset_pointer; 466 } pst_block_offset_pointer;
467 467
468 struct pst_num_item { 468 struct pst_num_item {
469 uint32_t id; 469 uint32_t id;
470 unsigned char *data; 470 unsigned char *data;
471 uint32_t type; 471 uint32_t type;
472 size_t size; 472 size_t size;
473 char *extra; 473 char *extra;
474 }; 474 };
475 475
476 typedef struct pst_num_array { 476 typedef struct pst_num_array {
531 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, struct holder *h, size_t size); 531 size_t pst_ff_compile_ID(pst_file *pf, uint64_t id, struct holder *h, size_t size);
532 532
533 int pst_strincmp(char *a, char *b, size_t x); 533 int pst_strincmp(char *a, char *b, size_t x);
534 int pst_stricmp(char *a, char *b); 534 int pst_stricmp(char *a, char *b);
535 size_t pst_fwrite(const void*ptr, size_t size, size_t nmemb, FILE*stream); 535 size_t pst_fwrite(const void*ptr, size_t size, size_t nmemb, FILE*stream);
536 char * pst_wide_to_single(char *wt, int32_t size); 536 char * pst_wide_to_single(char *wt, size_t size);
537 537
538 char * pst_rfc2426_escape(char *str); 538 char * pst_rfc2426_escape(char *str);
539 int pst_chr_count(char *str, char x); 539 int pst_chr_count(char *str, char x);
540 char * pst_rfc2425_datetime_format(FILETIME *ft); 540 char * pst_rfc2425_datetime_format(FILETIME *ft);
541 char * pst_rfc2445_datetime_format(FILETIME *ft); 541 char * pst_rfc2445_datetime_format(FILETIME *ft);