comparison src/libpst.h @ 257:c947b8812120

rfc2047 and rfc2231 encoding for non-ascii headers and attachment filenames
author Carl Byington <carl@five-ten-sg.com>
date Fri, 24 Dec 2010 19:26:05 -0800
parents 1d50ff3c5091
children eafaf362779e
comparison
equal deleted inserted replaced
256:a863de65e5b8 257:c947b8812120
1068 * @return default character set as a string useable by iconv() 1068 * @return default character set as a string useable by iconv()
1069 */ 1069 */
1070 const char* pst_default_charset(pst_item *item, int buflen, char* result); 1070 const char* pst_default_charset(pst_item *item, int buflen, char* result);
1071 1071
1072 1072
1073 /** Convert str to rfc2231 encoding of str
1074 * @param item pointer to the containing mapi item
1075 * @param str pointer to the mapi string of interest
1076 */
1077 void pst_rfc2231(pst_string *str);
1078
1079
1080 /** Convert str to rfc2047 encoding of str, possibly enclosed in quotes if it contains spaces
1081 * @param item pointer to the containing mapi item
1082 * @param str pointer to the mapi string of interest
1083 */
1084 void pst_rfc2047(pst_item *item, pst_string *str, int needs_quote);
1085
1086
1073 /** Convert str to utf8 if possible; null strings are preserved. 1087 /** Convert str to utf8 if possible; null strings are preserved.
1074 * @param item pointer to the containing mapi item 1088 * @param item pointer to the containing mapi item
1075 * @param str pointer to the mapi string of interest 1089 * @param str pointer to the mapi string of interest
1076 */ 1090 */
1077 void pst_convert_utf8_null(pst_item *item, pst_string *str); 1091 void pst_convert_utf8_null(pst_item *item, pst_string *str);