Top | ![]() |
![]() |
![]() |
![]() |
CamelMultipart * | camel_multipart_new () |
void | camel_multipart_add_part () |
void | camel_multipart_add_part_at () |
void | camel_multipart_remove_part () |
CamelMimePart * | camel_multipart_remove_part_at () |
CamelMimePart * | camel_multipart_get_part () |
guint | camel_multipart_get_number () |
void | camel_multipart_set_boundary () |
const gchar * | camel_multipart_get_boundary () |
void | camel_multipart_set_preface () |
void | camel_multipart_set_postface () |
gint | camel_multipart_construct_from_parser () |
GObject ╰── CamelObject ╰── CamelDataWrapper ╰── CamelMultipart ├── CamelMultipartEncrypted ╰── CamelMultipartSigned
CamelMultipart *
camel_multipart_new (void
);
Create a new CamelMultipart object.
void camel_multipart_add_part (CamelMultipart *multipart
,CamelMimePart *part
);
Appends the part to the multipart object.
void camel_multipart_add_part_at (CamelMultipart *multipart
,CamelMimePart *part
,guint index
);
Adds the part to the multipart object after the index
'th
element. If index
is greater than the number of parts, it is
equivalent to camel_multipart_add_part()
.
multipart |
a CamelMultipart object |
|
part |
a CamelMimePart to add |
|
index |
index to add the multipart at |
void camel_multipart_remove_part (CamelMultipart *multipart
,CamelMimePart *part
);
Removes part
from multipart
.
CamelMimePart * camel_multipart_remove_part_at (CamelMultipart *multipart
,guint index
);
Remove the indicated part from the multipart object.
the removed part. Note that it is g_object_unref()
'ed
before being returned, which may cause it to be destroyed.
CamelMimePart * camel_multipart_get_part (CamelMultipart *multipart
,guint index
);
void camel_multipart_set_boundary (CamelMultipart *multipart
,const gchar *boundary
);
Sets the message boundary for multipart
to boundary
. This should
be a string which does not occur anywhere in any of multipart
's
subparts. If boundary
is NULL
, a randomly-generated boundary will
be used.
const gchar *
camel_multipart_get_boundary (CamelMultipart *multipart
);
void camel_multipart_set_preface (CamelMultipart *multipart
,const gchar *preface
);
Set the preface text for this multipart. Will be written out infront of the multipart. This text should only include US-ASCII strings, and be relatively short, and will be ignored by any MIME mail client.
void camel_multipart_set_postface (CamelMultipart *multipart
,const gchar *postface
);
Set the postfix text for this multipart. Will be written out after the last boundary of the multipart, and ignored by any MIME mail client.
Generally postface texts should not be sent with multipart messages.
gint camel_multipart_construct_from_parser (CamelMultipart *multipart
,struct _CamelMimeParser *parser
);
Construct a multipart from a parser.