Mercurial > libpst
diff 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 |
line wrap: on
line diff
--- a/src/libpst.h Mon Sep 13 15:10:52 2010 -0700 +++ b/src/libpst.h Fri Dec 24 19:26:05 2010 -0800 @@ -1070,6 +1070,20 @@ const char* pst_default_charset(pst_item *item, int buflen, char* result); +/** Convert str to rfc2231 encoding of str + * @param item pointer to the containing mapi item + * @param str pointer to the mapi string of interest + */ +void pst_rfc2231(pst_string *str); + + +/** Convert str to rfc2047 encoding of str, possibly enclosed in quotes if it contains spaces + * @param item pointer to the containing mapi item + * @param str pointer to the mapi string of interest + */ +void pst_rfc2047(pst_item *item, pst_string *str, int needs_quote); + + /** Convert str to utf8 if possible; null strings are preserved. * @param item pointer to the containing mapi item * @param str pointer to the mapi string of interest