From e7157ba8938ac2de32ad3c5f5b73db12ddb772c0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 31 Oct 2001 00:26:58 +0000 Subject: New. * Evolution-Composer.idl (setMultipartType): New. * evolution-composer.c (impl_Composer_set_multipart_type): Allow caller to specify a multipart/alternative rather than multipart/mixed. * e-msg-composer.c (build_message): Revert yesterday's changes. Add new ones for sending multipart/alternative. svn path=/trunk/; revision=14510 --- composer/Evolution-Composer.idl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'composer/Evolution-Composer.idl') diff --git a/composer/Evolution-Composer.idl b/composer/Evolution-Composer.idl index c15597068a..dcf52b57e1 100644 --- a/composer/Evolution-Composer.idl +++ b/composer/Evolution-Composer.idl @@ -22,6 +22,11 @@ module Evolution { typedef sequence AttachmentData; + enum MultipartType { + MIXED, + ALTERNATIVE + }; + /** * setHeaders: * @to: the "To" recipients @@ -36,6 +41,27 @@ module Evolution { void setHeaders (in RecipientList to, in RecipientList cc, in RecipientList bcc, in string subject); + /** + * setMultipartType: + * @type: a multipart subtype + * + * Sets the kind of multipart message that is being + * created. + * + * If @type is MIXED (the default), setBodyText() + * will create the body, and attachMIME() and + * attachData() will create attachments. + * + * If @type is ALTERNATIVE, setBodyText() will create + * text/plain alternative, and each following + * attachMIME() or attachData() call will create + * another alternative. + * + * Other values of @type are not currently supported, + * although "related" probably should be. + **/ + void setMultipartType (in MultipartType type); + /** * setBodyText: * @body: the body -- cgit v1.2.3