GMimeStream *stream;
GMimeDataWrapper *wrapper;
GByteArray *byte_array;
+ GMimeContentDisposition *disposition;
char *body;
if (GMIME_IS_MULTIPART (part)) {
return;
}
+ disposition = g_mime_object_get_content_disposition (GMIME_OBJECT (part));
+ if (disposition &&
+ strcmp (disposition->disposition, GMIME_DISPOSITION_ATTACHMENT) == 0)
+ {
+ add_term (term_gen.get_document (), "label", "attachment");
+ }
+
byte_array = g_byte_array_new ();
stream = g_mime_stream_mem_new_with_byte_array (byte_array);