GMime 2.6 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct GMimeMessagePartial; GMimeMessagePartial * g_mime_message_partial_new (const char *id
,int number
,int total
); const char * g_mime_message_partial_get_id (GMimeMessagePartial *partial
); int g_mime_message_partial_get_number (GMimeMessagePartial *partial
); int g_mime_message_partial_get_total (GMimeMessagePartial *partial
); GMimeMessage * g_mime_message_partial_reconstruct_message (GMimeMessagePartial **partials
,size_t num
); GMimeMessage ** g_mime_message_partial_split_message (GMimeMessage *message
,size_t max_size
,size_t *nparts
);
GMimeMessagePartial * g_mime_message_partial_new (const char *id
,int number
,int total
);
Creates a new MIME message/partial object.
|
message/partial part id |
|
message/partial part number |
|
total number of message/partial parts |
Returns : |
an empty MIME message/partial object. |
const char * g_mime_message_partial_get_id (GMimeMessagePartial *partial
);
Gets the message/partial id parameter value.
|
message/partial object |
Returns : |
the message/partial id or NULL on fail. |
int g_mime_message_partial_get_number (GMimeMessagePartial *partial
);
Gets the message/partial part number.
|
message/partial object |
Returns : |
the message/partial part number or -1 on fail. |
int g_mime_message_partial_get_total (GMimeMessagePartial *partial
);
Gets the total number of message/partial parts needed to reconstruct the original message.
|
message/partial object |
Returns : |
the total number of message/partial parts needed to reconstruct the original message or -1 on fail. |
GMimeMessage * g_mime_message_partial_reconstruct_message (GMimeMessagePartial **partials
,size_t num
);
Reconstructs the GMimeMessage from the given message/partial parts
in partials
.
|
an array of message/partial mime parts |
|
the number of elements in partials
|
Returns : |
a GMimeMessage object on success or NULL on fail. |
GMimeMessage ** g_mime_message_partial_split_message (GMimeMessage *message
,size_t max_size
,size_t *nparts
);
Splits message
into an array of GMimeMessage objects each
containing a single GMimeMessagePartial object containing
max_size
bytes or fewer. nparts
is set to the number of
GMimeMessagePartial objects created.
|
message object |
|
max size |
|
number of parts |
Returns : |
an array of GMimeMessage objects and sets nparts to th
number of messages returned or NULL on fail. |