From ed3681564ca93350b6c99e393376319a35abefde Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 2 Oct 2000 23:26:53 +0000 Subject: New convenience function to determine if there are any 8bit mime parts in 2000-10-02 Jeffrey Stedfast * camel-mime-message.c (camel_mime_message_has_8bit_parts): New convenience function to determine if there are any 8bit mime parts in a mime message. (camel_mime_message_encode_8bit_parts): New convenience function to recursively reencode all 8bit mime parts to either quoted-printable or base64 depending on which would be the best encoding for that part. * providers/smtp/camel-smtp-transport.c (smtp_data): If the mime message contains 8bit parts and the server doesn't support 8bit transfers, reencode those parts before proceding with the send. (smtp_mail): If the mime message contains 8bit parts and the server supports the 8BITMIME extension to SMTP, notify the server that we'll be sending it 8bit mime parts. (_send_to): Find out if the message contains 8bit parts. svn path=/trunk/; revision=5677 --- camel/camel-mime-message.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camel/camel-mime-message.h') diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h index 7e90d7cbcc..33436c6dad 100644 --- a/camel/camel-mime-message.h +++ b/camel/camel-mime-message.h @@ -111,6 +111,11 @@ void camel_mime_message_remove_recipient_name (CamelMimeMessage *mime_message, const CamelInternetAddress *camel_mime_message_get_recipients (CamelMimeMessage *mime_message, const char *type); + +/* utility functions */ +gboolean camel_mime_message_has_8bit_parts (CamelMimeMessage *mime_message); +void camel_mime_message_encode_8bit_parts (CamelMimeMessage *mime_message); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3