aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-03 07:26:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-03 07:26:53 +0800
commited3681564ca93350b6c99e393376319a35abefde (patch)
tree911c88e6be6e7473e81c5ae2e435b47b6094777d /camel/camel-mime-message.h
parent419c6ce7e3f3c42ebffe0b20b1529ef4cec93f9a (diff)
downloadgsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar.gz
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar.bz2
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar.lz
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar.xz
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.tar.zst
gsoc2013-evolution-ed3681564ca93350b6c99e393376319a35abefde.zip
New convenience function to determine if there are any 8bit mime parts in
2000-10-02 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'camel/camel-mime-message.h')
-rw-r--r--camel/camel-mime-message.h5
1 files changed, 5 insertions, 0 deletions
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 */