diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-09-19 03:02:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-09-19 03:02:15 +0800 |
commit | 91195af48f02c220eb2eca29c2ab417faf8a705f (patch) | |
tree | c038f47f62273301e6241056556de733d911483f /camel/camel-mime-utils.h | |
parent | 21c57eeb74e30e5c2a42c066889b7ca6cd874d74 (diff) | |
download | gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.gz gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.bz2 gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.lz gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.xz gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.zst gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.zip |
New function to replace the one from camel-mime-part.c
2003-09-18 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-utils.c (camel_transfer_encoding_to_string): New
function to replace the one from camel-mime-part.c
(camel_transfer_encoding_from_string): Same.
(camel_content_transfer_encoding_decode): Renamed from
camel_header_content_encoding_decode().
* camel-mime-part.c (camel_mime_part_encoding_to_string): Removed.
(camel_mime_part_encoding_from_string): Removed.
* camel-data-wrapper.[c,h]: updated for CamelTransferEncoding
namespace changes
* camel-folder-summary.c: updated for CamelTransferEncoding
namespace changes
* camel-mime-filter-bestenc.[c,h]: updated for CamelTransferEncoding
namespace changes
* camel-mime-message.c: updated for CamelTransferEncoding
namespace changes
* camel-mime-part-utils.c: updated for CamelTransferEncoding
namespace changes
* camel-multipart-signed.c: updated for CamelTransferEncoding
namespace changes
* camel-smime-context.c: updated for CamelTransferEncoding
namespace changes
* providers/imapp/camel-imapp-utils.c: updated for
CamelTransferEncoding namespace changes
* tests/lib/messages.c: updated for CamelTransferEncoding
namespace changes
* tests/message/test1.c: updated for CamelTransferEncoding
namespace changes
svn path=/trunk/; revision=22617
Diffstat (limited to 'camel/camel-mime-utils.h')
-rw-r--r-- | camel/camel-mime-utils.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h index 5e2fa766a9..3048950411 100644 --- a/camel/camel-mime-utils.h +++ b/camel/camel-mime-utils.h @@ -43,16 +43,16 @@ extern "C" { #define CAMEL_UUDECODE_STATE_MASK (CAMEL_UUDECODE_STATE_BEGIN | CAMEL_UUDECODE_STATE_END) /* note, if you change this, make sure you change the 'encodings' array in camel-mime-part.c */ -typedef enum _CamelMimePartEncodingType { - CAMEL_MIME_PART_ENCODING_DEFAULT, - CAMEL_MIME_PART_ENCODING_7BIT, - CAMEL_MIME_PART_ENCODING_8BIT, - CAMEL_MIME_PART_ENCODING_BASE64, - CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE, - CAMEL_MIME_PART_ENCODING_BINARY, - CAMEL_MIME_PART_ENCODING_UUENCODE, - CAMEL_MIME_PART_NUM_ENCODINGS -} CamelMimePartEncodingType; +typedef enum _CamelTransferEncoding { + CAMEL_TRANSFER_ENCODING_DEFAULT, + CAMEL_TRANSFER_ENCODING_7BIT, + CAMEL_TRANSFER_ENCODING_8BIT, + CAMEL_TRANSFER_ENCODING_BASE64, + CAMEL_TRANSFER_ENCODING_QUOTEDPRINTABLE, + CAMEL_TRANSFER_ENCODING_BINARY, + CAMEL_TRANSFER_ENCODING_UUENCODE, + CAMEL_TRANSFER_NUM_ENCODINGS +} CamelTransferEncoding; /* a list of references for this message */ struct _camel_header_references { @@ -159,7 +159,7 @@ void camel_content_disposition_unref (CamelContentDisposition *); char *camel_content_disposition_format (CamelContentDisposition *d); /* decode the contents of a content-encoding header */ -char *camel_header_content_encoding_decode (const char *in); +char *camel_content_transfer_encoding_decode (const char *in); /* raw headers */ void camel_header_raw_append (struct _camel_header_raw **list, const char *name, const char *value, int offset); @@ -212,6 +212,9 @@ struct _camel_header_references *camel_header_references_dup (const struct _came /* decode content-location */ char *camel_header_location_decode (const char *in); +const char *camel_transfer_encoding_to_string (CamelTransferEncoding encoding); +CamelTransferEncoding camel_transfer_encoding_from_string (const char *string); + /* decode the mime-type header */ void camel_header_mime_decode (const char *in, int *maj, int *min); |