comparison src/libpst.h @ 390:5c0ce43c7532

Fix a number of spelling mistakes Changes-by: codespell -w Suggested-by: codespell, spellintian, lintian I: libpst4: spelling-error-in-binary usr/lib/x86_64-linux-gnu/libpst.so.4.1.14 occured occurred I: libpst-dev: spelling-error-in-manpage usr/share/man/man5/outlook.pst.5.gz Attachement Attachment
author Paul Wise <pabs3@bonedaddy.net>
date Sat, 21 Dec 2019 21:25:45 +0800
parents 58149891ea7b
children
comparison
equal deleted inserted replaced
389:3f83feface7a 390:5c0ce43c7532
68 #define PST_APP_LABEL_NEEDS_PREP 7 68 #define PST_APP_LABEL_NEEDS_PREP 7
69 #define PST_APP_LABEL_BIRTHDAY 8 69 #define PST_APP_LABEL_BIRTHDAY 8
70 #define PST_APP_LABEL_ANNIVERSARY 9 70 #define PST_APP_LABEL_ANNIVERSARY 9
71 #define PST_APP_LABEL_PHONE_CALL 10 71 #define PST_APP_LABEL_PHONE_CALL 10
72 72
73 // define type of recuring event 73 // define type of recurring event
74 #define PST_APP_RECUR_NONE 0 74 #define PST_APP_RECUR_NONE 0
75 #define PST_APP_RECUR_DAILY 1 75 #define PST_APP_RECUR_DAILY 1
76 #define PST_APP_RECUR_WEEKLY 2 76 #define PST_APP_RECUR_WEEKLY 2
77 #define PST_APP_RECUR_MONTHLY 3 77 #define PST_APP_RECUR_MONTHLY 3
78 #define PST_APP_RECUR_YEARLY 4 78 #define PST_APP_RECUR_YEARLY 4
264 /** mapi element 0x0050 PR_REPLY_RECIPIENT_NAMES */ 264 /** mapi element 0x0050 PR_REPLY_RECIPIENT_NAMES */
265 pst_string reply_to; 265 pst_string reply_to;
266 /** mapi element 0x1046, this seems to be the message-id of the rfc822 mail that is being returned */ 266 /** mapi element 0x1046, this seems to be the message-id of the rfc822 mail that is being returned */
267 pst_string return_path_address; 267 pst_string return_path_address;
268 /** mapi element 0x1007 PR_RTF_SYNC_BODY_COUNT, 268 /** mapi element 0x1007 PR_RTF_SYNC_BODY_COUNT,
269 * a count of the *significant* charcters in the rtf body. Doesn't count 269 * a count of the *significant* characters in the rtf body. Doesn't count
270 * whitespace and other ignorable characters. */ 270 * whitespace and other ignorable characters. */
271 int32_t rtf_body_char_count; 271 int32_t rtf_body_char_count;
272 /** mapi element 0x1006 PR_RTF_SYNC_BODY_CRC */ 272 /** mapi element 0x1006 PR_RTF_SYNC_BODY_CRC */
273 int32_t rtf_body_crc; 273 int32_t rtf_body_crc;
274 /** mapi element 0x1008 PR_RTF_SYNC_BODY_TAG, 274 /** mapi element 0x1008 PR_RTF_SYNC_BODY_TAG,
677 * @li 1 has 4 parameters 677 * @li 1 has 4 parameters
678 * @li 2 has 4 parameters 678 * @li 2 has 4 parameters
679 * @li 3 has 5 parameters 679 * @li 3 has 5 parameters
680 */ 680 */
681 uint32_t sub_type; 681 uint32_t sub_type;
682 /** must be contiguous, not an array to make python interface easier */ 682 /** must be contiguous, not an array to make Python interface easier */
683 uint32_t parm1; 683 uint32_t parm1;
684 uint32_t parm2; 684 uint32_t parm2;
685 uint32_t parm3; 685 uint32_t parm3;
686 uint32_t parm4; 686 uint32_t parm4;
687 uint32_t parm5; 687 uint32_t parm5;
697 uint32_t bydaymask; 697 uint32_t bydaymask;
698 /** day of month for monthly and yearly recurrences */ 698 /** day of month for monthly and yearly recurrences */
699 uint32_t dayofmonth; 699 uint32_t dayofmonth;
700 /** month of year for yearly recurrences */ 700 /** month of year for yearly recurrences */
701 uint32_t monthofyear; 701 uint32_t monthofyear;
702 /** occurence of day for 2nd Tuesday of month, in which case position is 2 */ 702 /** occurrence of day for 2nd Tuesday of month, in which case position is 2 */
703 uint32_t position; 703 uint32_t position;
704 /** number of occurrences, even if recurrence terminates based on date */ 704 /** number of occurrences, even if recurrence terminates based on date */
705 uint32_t count; 705 uint32_t count;
706 // there is more data, including the termination date, 706 // there is more data, including the termination date,
707 // but we can get that from other mapi elements. 707 // but we can get that from other mapi elements.
860 } pst_item; 860 } pst_item;
861 861
862 862
863 /** Linked list of extended attributes. 863 /** Linked list of extended attributes.
864 * This is used to convert mapi_id values in the pst file into 864 * This is used to convert mapi_id values in the pst file into
865 * cannonical mapi_id values to be used in this code. This list 865 * canonical mapi_id values to be used in this code. This list
866 * is kept in sorted order, where the key is the 'map' field. 866 * is kept in sorted order, where the key is the 'map' field.
867 * Some mapi_id values are converted to cannonical mapi_id values 867 * Some mapi_id values are converted to canonical mapi_id values
868 * (PST_MAP_ATTRIB), and others are converted to a string 868 * (PST_MAP_ATTRIB), and others are converted to a string
869 * (PST_ATTRIB_HEADER). 869 * (PST_ATTRIB_HEADER).
870 */ 870 */
871 typedef struct pst_x_attrib_ll { 871 typedef struct pst_x_attrib_ll {
872 /** @li 1 PST_MAP_ATTRIB map->int attribute 872 /** @li 1 PST_MAP_ATTRIB map->int attribute
926 uint64_t index2_back; 926 uint64_t index2_back;
927 /** size of the pst file */ 927 /** size of the pst file */
928 uint64_t size; 928 uint64_t size;
929 /** @li 0 PST_NO_ENCRYPT, none 929 /** @li 0 PST_NO_ENCRYPT, none
930 * @li 1 PST_COMP_ENCRYPT, simple byte substitution cipher with fixed key 930 * @li 1 PST_COMP_ENCRYPT, simple byte substitution cipher with fixed key
931 * @li 2 PST_ENCRYPT, german enigma 3 rotor cipher with fixed key */ 931 * @li 2 PST_ENCRYPT, German enigma 3 rotor cipher with fixed key */
932 unsigned char encryption; 932 unsigned char encryption;
933 /** index type or file type 933 /** index type or file type
934 * @li 0x0e 32 bit pre Outlook 2003 934 * @li 0x0e 32 bit pre Outlook 2003
935 * @li 0x0f 32 bit pre Outlook 2003 935 * @li 0x0f 32 bit pre Outlook 2003
936 * @li 0x15 64 bit Outlook 2003 or later 936 * @li 0x15 64 bit Outlook 2003 or later
1108 /** Get the default character set for this item. This is used to find 1108 /** Get the default character set for this item. This is used to find
1109 * the charset for pst_string elements that are not already in utf8 encoding. 1109 * the charset for pst_string elements that are not already in utf8 encoding.
1110 * @param item pointer to the mapi item of interest 1110 * @param item pointer to the mapi item of interest
1111 * @param[in] buflen length of the output buffer 1111 * @param[in] buflen length of the output buffer
1112 * @param[out] result pointer to output buffer, must be at least 30 bytes 1112 * @param[out] result pointer to output buffer, must be at least 30 bytes
1113 * @return default character set as a string useable by iconv() 1113 * @return default character set as a string usable by iconv()
1114 */ 1114 */
1115 const char* pst_default_charset(pst_item *item, int buflen, char* result); 1115 const char* pst_default_charset(pst_item *item, int buflen, char* result);
1116 1116
1117 1117
1118 /** Convert str to rfc2231 encoding of str 1118 /** Convert str to rfc2231 encoding of str