const char *value;
InternetAddressList *addresses;
- *part_count += 1;
mime_message = g_mime_message_part_get_message (GMIME_MESSAGE_PART (part));
/* Insert the headers of the enclosed message. */
GByteArray *part_content;
const char *cid;
+ *part_count += 1;
+
content_type = g_mime_object_get_content_type (GMIME_OBJECT (part));
if (!first)
GMimeMultipart *multipart = GMIME_MULTIPART (part);
int i;
+
printf (", \"content\": [\n");
for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
mime_message = g_mime_parser_construct_message (parser);
- part_count += 1;
show_part (g_mime_message_get_mime_part (mime_message),
&part_count, TRUE);
static void
show_one_part_worker (GMimeObject *part, int *part_count, int desired_part)
{
+ *part_count += 1;
+
if (GMIME_IS_MULTIPART (part)) {
GMimeMultipart *multipart = GMIME_MULTIPART (part);
int i;
- /* Account for the multipart wrapper part. */
- *part_count += 1;
for (i = 0; i < g_mime_multipart_get_count (multipart); i++) {
+ *part_count += 1;
+
show_one_part_worker (g_mime_multipart_get_part (multipart, i),
part_count, desired_part);
}
if (! (GMIME_IS_PART (part)))
return;
- *part_count = *part_count + 1;
-
if (*part_count == desired_part)
show_one_part_output (part);
}