Top | ![]() |
![]() |
![]() |
![]() |
CamelMultipart * | camel_multipart_new () |
void | camel_multipart_add_part () |
CamelMimePart * | camel_multipart_get_part () |
guint | camel_multipart_get_number () |
const gchar * | camel_multipart_get_boundary () |
void | camel_multipart_set_boundary () |
const gchar * | camel_multipart_get_preface () |
void | camel_multipart_set_preface () |
const gchar * | camel_multipart_get_postface () |
void | camel_multipart_set_postface () |
gint | camel_multipart_construct_from_parser () |
gchar * | camel_multipart_generate_preview () |
GObject ╰── 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.
CamelMimePart * camel_multipart_get_part (CamelMultipart *multipart
,guint index
);
const gchar *
camel_multipart_get_boundary (CamelMultipart *multipart
);
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_preface (CamelMultipart *multipart
);
Returns the preface text for multipart
.
Since: 3.12
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.
const gchar *
camel_multipart_get_postface (CamelMultipart *multipart
);
Returns the postface text for multipart
.
Since: 3.12
void camel_multipart_set_postface (CamelMultipart *multipart
,const gchar *postface
);
Set the postface 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
,CamelMimeParser *parser
);
Construct a multipart from a parser.
gchar * camel_multipart_generate_preview (CamelMultipart *multipart
,CamelGeneratePreviewFunc func
,gpointer user_data
);
Generates preview of the multipart
, to be used in the interface,
read by the users.
The optional func
can be used to override default preview generation
function. If provided, it's always called as the first try on the parts.
multipart |
||
func |
an optional CamelGeneratePreviewFunc function, or |
[nullable][scope call] |
user_data |
user data for the |
[closure func] |
part's preview as a new string,
or NULL
, when cannot be generated. Free with g_free()
, when no
longer needed.
[nullable][transfer full]
Since: 3.52