* src/modest-search.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 24 Apr 2008 15:53:56 +0000 (15:53 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 24 Apr 2008 15:53:56 +0000 (15:53 +0000)
        * (search_mime_part_and_child_parts): fix this to filter only
  attachments and not nearly any body part (fixes NB#84821).

pmo-trunk-r4462

src/modest-search.c

index af5a8af..6146a8b 100644 (file)
@@ -346,7 +346,7 @@ search_mime_part_and_child_parts (TnyMimePart *part, ModestSearch *search)
        gboolean found = FALSE;
 
        /* Do not search into attachments */
-       if (modest_tny_mime_part_is_attachment_for_modest (part))
+       if (modest_tny_mime_part_is_attachment_for_modest (part) && !TNY_IS_MSG (part))
                return FALSE;
 
        #ifdef MODEST_HAVE_OGS