diff options
author | Not Zed <NotZed@Ximian.com> | 2004-06-01 18:07:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-06-01 18:07:13 +0800 |
commit | 1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6 (patch) | |
tree | 108ec91ce407cf45f3ac676d9f95c137609668d4 /camel/camel-mime-utils.h | |
parent | a29f73349a81fa8d418865b55b9a5a1ddddcfd44 (diff) | |
download | gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar.gz gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar.bz2 gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar.lz gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar.xz gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.tar.zst gsoc2013-evolution-1a6fb9ab8807f8ad8c8f79ba1cc4fa7a015c08d6.zip |
** A few fixes for better rfc compliance, and cleaner code.
2004-06-01 Not Zed <NotZed@Ximian.com>
** A few fixes for better rfc compliance, and cleaner code.
* camel-mime-utils.c (header_encode_param): a bunch of logic
cleanups with new util functions.
(header_decode_init): setup a new type ATTR_CHAR, for
attribute-char.
* tests/misc/test2.c (main): new test for rfc2184 stuff.
* camel-mime-utils.c (header_convert): helper to convert between
charsets.
(rfc2184_decode): fix a bunch of logic problems and use the helper
above to simplify code.
(decode_param_token): removed, not needed.
(header_decode_rfc2184_param): removed, not needed.
(header_decode_param): removed, not needed. ugh.
(header_decode_param_list): completely rewritten, hence lack of
need of above.
svn path=/trunk/; revision=26140
Diffstat (limited to 'camel/camel-mime-utils.h')
-rw-r--r-- | camel/camel-mime-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index d4e3012d95..5fb23be36f 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -263,6 +263,7 @@ enum { CAMEL_MIME_IS_QPSAFE = 1<<6, CAMEL_MIME_IS_ESAFE = 1<<7, /* encoded word safe */ CAMEL_MIME_IS_PSAFE = 1<<8, /* encoded word in phrase safe */ + CAMEL_MIME_IS_ATTRCHAR = 1<<9, /* attribute-char safe (rfc2184) */ }; extern unsigned short camel_mime_special_table[256]; @@ -278,6 +279,7 @@ extern unsigned short camel_mime_special_table[256]; #define camel_mime_is_qpsafe(x) ((camel_mime_special_table[(unsigned char)(x)] & CAMEL_MIME_IS_QPSAFE) != 0) #define camel_mime_is_especial(x) ((camel_mime_special_table[(unsigned char)(x)] & CAMEL_MIME_IS_ESPECIAL) != 0) #define camel_mime_is_psafe(x) ((camel_mime_special_table[(unsigned char)(x)] & CAMEL_MIME_IS_PSAFE) != 0) +#define camel_mime_is_attrchar(x) ((camel_mime_special_table[(unsigned char)(x)] & CAMEL_MIME_IS_ATTRCHAR) != 0) #ifdef __cplusplus } |