On Thu, 17 Aug 2017 08:41:57 +0000 (UTC) Pedro David Marco wrote: > Thanks Paul... > it is weird... > the documentation says: > > - find_parts() > > - Used to search the tree for specific MIME parts. An array of > matching Node objects (pointers into the tree) is returned. The > parameters that can be passed in are (in order, all scalars): > - Regexp - Used to match against each part's Content-Type > header, specifically the type and not the rest of the header.
Have you ruled-out the possibility that the mime-type for such parts is set to the default mime type of text/plain?