mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
Avoid complaints about messages with empty mime parts.
This commit is contained in:
parent
48d2e2dc44
commit
71bd250cb6
1 changed files with 2 additions and 1 deletions
|
@ -503,6 +503,7 @@ gen_terms_part (Xapian::TermGenerator term_gen,
|
|||
stream = g_mime_stream_mem_new_with_byte_array (byte_array);
|
||||
g_mime_stream_mem_set_owner (GMIME_STREAM_MEM (stream), FALSE);
|
||||
wrapper = g_mime_part_get_content_object (GMIME_PART (part));
|
||||
if (wrapper)
|
||||
g_mime_data_wrapper_write_to_stream (wrapper, stream);
|
||||
|
||||
g_object_unref (stream);
|
||||
|
|
Loading…
Reference in a new issue