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-filter-bestenc.c | |
parent | 21c57eeb74e30e5c2a42c066889b7ca6cd874d74 (diff) | |
download | gsoc2013-evolution-91195af48f02c220eb2eca29c2ab417faf8a705f.tar.gz 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-filter-bestenc.c')
-rw-r--r-- | camel/camel-mime-filter-bestenc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/camel/camel-mime-filter-bestenc.c b/camel/camel-mime-filter-bestenc.c index 5fc0bb9985..2752652003 100644 --- a/camel/camel-mime-filter-bestenc.c +++ b/camel/camel-mime-filter-bestenc.c @@ -219,10 +219,10 @@ camel_mime_filter_bestenc_new (unsigned int flags) * * Return value: **/ -CamelMimePartEncodingType +CamelTransferEncoding camel_mime_filter_bestenc_get_best_encoding(CamelMimeFilterBestenc *f, CamelBestencEncoding required) { - CamelMimePartEncodingType bestenc; + CamelTransferEncoding bestenc; int istext; istext = (required & CAMEL_BESTENC_TEXT) ? 1 : 0; @@ -238,15 +238,15 @@ camel_mime_filter_bestenc_get_best_encoding(CamelMimeFilterBestenc *f, CamelBest that will never let it show. Unfortunately only base64 can at present, although qp could be modified to allow it too */ if ((f->flags & CAMEL_BESTENC_NO_FROM) && f->hadfrom) - return CAMEL_MIME_PART_ENCODING_BASE64; + return CAMEL_TRANSFER_ENCODING_BASE64; /* if we need to encode, see how we do it */ if (required == CAMEL_BESTENC_BINARY) - bestenc = CAMEL_MIME_PART_ENCODING_BINARY; + bestenc = CAMEL_TRANSFER_ENCODING_BINARY; else if (istext && (f->count0 == 0 && f->count8 < (f->total * 17 / 100))) - bestenc = CAMEL_MIME_PART_ENCODING_QUOTEDPRINTABLE; + bestenc = CAMEL_TRANSFER_ENCODING_QUOTEDPRINTABLE; else - bestenc = CAMEL_MIME_PART_ENCODING_BASE64; + bestenc = CAMEL_TRANSFER_ENCODING_BASE64; /* if we have nocrlf order, or long lines, we need to encode always */ if (f->crlfnoorder || f->maxline >= 998) @@ -254,7 +254,7 @@ camel_mime_filter_bestenc_get_best_encoding(CamelMimeFilterBestenc *f, CamelBest /* if we have no 8 bit chars or nul's, we can just use 7 bit */ if (f->count8 + f->count0 == 0) - return CAMEL_MIME_PART_ENCODING_7BIT; + return CAMEL_TRANSFER_ENCODING_7BIT; /* otherwise, we see if we can use 8 bit, or not */ switch(required) { @@ -264,12 +264,12 @@ camel_mime_filter_bestenc_get_best_encoding(CamelMimeFilterBestenc *f, CamelBest case CAMEL_BESTENC_BINARY: default: if (f->count0 == 0) - return CAMEL_MIME_PART_ENCODING_8BIT; + return CAMEL_TRANSFER_ENCODING_8BIT; else return bestenc; } - return CAMEL_MIME_PART_ENCODING_DEFAULT; + return CAMEL_TRANSFER_ENCODING_DEFAULT; } /** |