mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 19:04:53 +01:00
Add support for message-part mime parts.
We could (and probably should) reparse and index all the headers from the embedded message, but I'm not choosing to do that now---I'm just indexing the body of the embedded message.
This commit is contained in:
parent
914df660c4
commit
a5865d0574
1 changed files with 11 additions and 1 deletions
|
@ -475,7 +475,17 @@ gen_terms_part (Xapian::TermGenerator term_gen,
|
|||
return;
|
||||
}
|
||||
|
||||
if (! GMIME_IS_PART (part)) {
|
||||
if (GMIME_IS_MESSAGE_PART (part)) {
|
||||
GMimeMessage *message;
|
||||
|
||||
message = g_mime_message_part_get_message (GMIME_MESSAGE_PART (part));
|
||||
|
||||
gen_terms_part (term_gen, g_mime_message_get_mime_part (message));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (! (GMIME_IS_PART (part))) {
|
||||
fprintf (stderr, "Warning: Not indexing unknown mime part: %s.\n",
|
||||
g_type_name (G_OBJECT_TYPE (part)));
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue